Forum Replies Created
-
AuthorPosts
-
Thank you Very much Brian.
Very nice. I also faced the same problem. But I solved it in a different way. I created a shortcut for my (findbylist.js and support directory) in the Adobe Scripts directory, which will point to the shared directory. Anyone can access the shared directory. Thanks.
Hi Peter,
Thanks and it works as expected.Hi Brian,
Thanks for the reply. Yes, I am calling the function myFindGlyph from Main, via some other functions in between. I am sure that there are no errors in those functions.
The font SHREE-DEVXE-0709 is a ttf type font. And, SHREE_DEV_OTF_0709 is a otf font.
I tried with general Minion Pro for testing. Unfortunately, I met with the same result.
Any thoughts?
Thanks Brian,
How silly am I!… I changed the code as follows:
function myFindGlyph(myObject){
app.findGlyphPreferences = NothingEnum.nothing;
app.changeGlyphPreferences = NothingEnum.nothing;
app.findGlyphPreferences.appliedFont = app.fonts.itemByName(“SHREE-DEVXE-0709”);
app.findGlyphPreferences.glyphID = 83;app.changeGlyphPreferences.appliedFont = app.fonts.itemByName(“SHREE_DEV_OTF_0709”);
app.changeGlyphPreferences.glyphID = 45;
myObject.changeGlyph(true);
app.findGlyphPreferences = NothingEnum.nothing;
app.changeGlyphPreferences = NothingEnum.nothing;
}Still I get the same error.
JavaScript Error!
Error Number: 33801
Error String: Invalid Find Font
Source: myObject.changeGlyph(false)January 3, 2020 at 10:12 am in reply to: How to add a Link (^D) in Indesign using VBScripts #14323344Hi,
I shall improve my question.
I use the following commands:
app.copy();
app.paste();to copy and paste whatever is selected. But, I want to paste the selection at a particular geometric location. How to do that.
Thanks Paul and Jones
Thanks Paul
Dear Graham,
Thanks for the reply and it works well.Sorry,
I should have seen better….
I got the answers to my query…
appliedFont and fillColor are there… Got it from the references given above.
Thank you.
Thank you very for the replies to all…
But still…
Ok, I should have explained more. Below is my code to Create a Character Style.
function CreateCharacterStyle(myCharacterStyleName){
var myDocument = app.documents.item(0);
try{
myCharacterStyle = myDocument.characterStyles.item(myCharacterStyleName);
myName = myCharacterStyle.name;
}
catch (myError){
myCharacterStyle = myDocument.characterStyles.add({name:myCharacterStyleName});
}
}Fantastic…
But, If I need to set the Font Family, Character Color, etc to the CharacterStyle, how to setup? What are the Properties to be setup for the Object?I am still unable to find out from he references.
Thank you in advance again.Hi there,
I found a script which sets up the “Adobe World-ready Paragraph Composer” to Yes.
app.selection[0].parentStory.composer = “$ID/HL Composer Optyca” ;
Thank you very much
Haha. Thanks Harris for reading my posting.
I searched and found out the following…
The FindReplacebyList creates ‘undo’ for each Replace. Thus it takes up lots of time… And eventually the system hangs. This ‘undo’ can be controlled by ‘doScript’ with AutoUndo option.
Still trying to explore it. Yet to get full solution. Shall share once I get the result.
Thank you.
Hi Bob….
Kasyan’s script has opened up a lot of possibilities for me. Thank you very much for the pointer.I have more than 500 ID files on which I have to run a set of scripts and then export them individually to .rtf format. Now I can automate the scripts. Is it possible for me the process of exporting also?
My doubt is because, white exporting I need to give the name of the rtf file manually. Is there any way how the system can take the name of the ID file itself as the name of rtf too?
Thanks a ton.
Thanks a lot to Kai and Bob..
-
AuthorPosts
