(yet another silly question!)
I've finally managed to get a script to import images working the way that I'd like it to, but what would be great is to be able to move the view of the document back to the very first regular page when the script finishes.
The script constructs a new document with master pages, does all the importing, and then terminates - but leaves you staring at the rather empty master spreads that it has created, rather than the first page of the document itself. Is there a way of instructing it to centre the window on page 1? I've not seen anything - I'd been hoping there might be a setView method tucked away in the document object, but there doesn't seem to be...
Try to add this to the end of your script:
app.activeWindow.activePage = app.activeDocument.pages.item(0); app.activeWindow.zoom(ZoomOptions.fitPage);
Perfect! Thank you!
Should really have checked under application, shouldn't I?
Still, the script users will be happy now, and that's what counts :-)