2 Replies Latest reply on May 19, 2010 9:03 PM by Yuliaart

    Justification  in InDesign CS4 JavaScript

    Yuliaart Level 1

      Hi, I need to right-justify text in the text frame and I think I got the syntax right from OMV, but it's not working:


      var myCardName = myDoc.textFrames.add (myDoc.layers.item ("INSTRUCTIONS (TURN OFF)"));
      myCardName.geometricBounds = ["0.2969 in", "1.2272 in", "0.365 in", "3 in"];

      var myParagraphStyle = myCardName.paragraphStyles.item(0);
      myParagraphStyle.justification = Justification.RIGHT_ALIGN;



      Thank you very much for your help.