FORUMS: list search recent posts

apply character style JavaScript

COW Forums : Adobe InDesign

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Miroslav Hora
apply character style JavaScript
on Jun 18, 2009 at 7:39:20 am

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

http://kreativec.com
Prague - CZ


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]