Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe InDesign apply character style JavaScript

  • apply character style JavaScript

    Posted by Miroslav Hora on June 18, 2009 at 7:39 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

    https://kreativec.com
    Prague – CZ

    Miroslav Hora replied 16 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy