-
apply character style JavaScript
Hi guys!
I’ve got a little problem here:
try{
myDoc.characterStyles.item("vypln").name;
}
catch (myError){
myDoc.characterStyles.add({name:"vypln"});
}
myDoc.characterStyles.item("vypln").fillColor = "Paper";
myDoc.characterStyles.item("vypln").appliedFont = app.fonts.item("Minion Pro");//ADDS A TEXTFRAME
var myTextFrame=app.activeDocument.textFrames.add(undefined,undefined,undefined,{appliedCharacterStyle:"vypln", geometricBounds:["10cm","10cm","10cm","10cm"]});Everything works fine without any error but the character style “vypln” is not applied to the text frame. Any advice how to apply it? THX
https://kreativec.com
Prague – CZ
Sorry, there were no replies found.