Hi All,
Greetings.
My code is below. I use ID CS6.
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;
myDocument.changeGlyph(false);
app.findGlyphPreferences = NothingEnum.nothing;
app.changeGlyphPreferences = NothingEnum.nothing;
}
When I run the js file, I get the following error.
JavaScript Error!
Error Number: 33801
Error String: Invalid Find Font
Source: myDocument.changeGlyph(false)
I am able to Find/Change the text in Glyph, from the ID UserInterface itself. Problem arises, when I run the js. I am not sure where I am doing any mistake. Request you all to help me.
Thanks in advance