Answered
Moving multiple pages via script
Is it possible to move mutliple pages in InDesign scripting with a single move call or do you need to move one page at a time?
Is it possible to move mutliple pages in InDesign scripting with a single move call or do you need to move one page at a time?
It's hard to say if it's one page at a time. The move() method belongs to Page and not Pages, so you could infer that the API moves one page at a time. But here's a simple example of moving some pages, and it is basically one call for multiple pages if you do it this way.
- Mark
var doc = app.activeDocument;
var allPages = doc.pages;
var myPages = allPages.itemByRange(4, 7);
myPages.move(LocationOptions.AT_BEGINNING);Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.