Copy link to clipboard
Copied
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!!!
app.activeDocument.layoutWindows[0].activePage = app.activeDocument.pages[0];
Copy link to clipboard
Copied
app.activeDocument.layoutWindows[0].activePage = app.activeDocument.pages[0];
Copy link to clipboard
Copied
Thank you so much for the quick and correct response!
Copy link to clipboard
Copied
Thanks for this - do you know if there's anyway to wait for this to happen? I've changing contents of items on the activePage but sometimes the switch to a new active page is a little delayed and it starts overwriting on the same page for a while
Copy link to clipboard
Copied
you could try waitForTask();
task = app.....etc
task.waitForTask();
alert("Finished")
its for Background tasks... if that your purpose