through JS scripting I would like referring right page in facing pages mode.
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.
Thanks in advance!
Moved to the scripting forum...
Check target page.side property and do something only when
page.side == PageSideOptions.RIGHT_HAND
I resolved in this way:
myDoc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin
just splitting the ruler in each page.
A little bit surprised..