Skip to main content
arekh2792424
Inspiring
March 3, 2017
Answered

Trying to change the active page

  • March 3, 2017
  • 1 reply
  • 3039 views

Hello world!    

     I have an infuriatingly simple issue. Javascript. I am trying to figure out how to set the current active window to a specific hard coded page on a specific hard coded document so I can switch to a page, make selections and modifications on the page then switch to the next page, and reiterate through an entire document all through script without user interaction being necessary. I have tried a number of things but I just cant find any information on this online. Please help!!!

This topic has been closed for replies.
Correct answer Loic.Aigon

app.activeDocument.layoutWindows[0].activePage = app.activeDocument.pages[0];

1 reply

Loic.Aigon
Loic.AigonCorrect answer
Brainiac
March 3, 2017

app.activeDocument.layoutWindows[0].activePage = app.activeDocument.pages[0];

arekh2792424
Inspiring
March 3, 2017

Thank you so much for the quick and correct response!