3 Replies Latest reply on Nov 27, 2015 1:04 AM by angelious

    How to referring right page in facing pages mode?

    angelious

      HI everyone,

       

      through JS scripting I would like referring right page in facing pages mode.

       

      For example:

      assuming that there are two pages in facing pages mode and the start page is the number 2

       

          var myDocument = app.activeDocument;
          var myPage = myDocument.pages.item(1);
          var myTextFrame = myPage.textFrames.add();
          myTextFrame.geometricBounds = ["72pt", "72pt", "288pt", "288pt"];
          myTextFrame.contents = "Example text frame.";
      

       

      this snippet places the textframe in the left page.

       

      Any suggestions???

       

      Thanks in advance!