3 Replies Latest reply on Apr 7, 2016 6:08 AM by Suzan.V

    help to adjust my script please

    Suzan.V Level 1

      Hello all,


      i created a script to change  all my paragraph styles composer to world-ready and give all directions  RTL but need add one more adjustment about (Alignment) in paragraph style

      i need to replace it to Right only if it was (Left)






      var myDoc = app.activeDocument;

      var myPStyle = myDoc.allParagraphStyles;

      for(i=1; i<myPStyle.length; i++){


           myPStyle[i].composer="Adobe World-Ready Paragraph Composer";

           myPStyle[i].kerningMethod = "Metrics";

           myPStyle[i].paragraphDirection = ParagraphDirectionOptions.rightToLeftDirection;




      Thanks all