Reply To: select pages in indesign

#71015

(Alexey: funny, it seems pages *are* selectable in the latest version! But it’s not necessary to apply a master.)

In the place of “MasterName”, below, fill in the exact name of the master that you want to apply. That is *with* the Prefix and the full name, such as “A-Master”.


var myDocument = app.activeDocument;
var myPages = myDocument.pages;
var myMaster = myDocument.masterSpreads.item("MasterName");
//change i=0 – for select even; or i=1 – for select odd
for (i=0; i<myPages.length; i=i+2)
{
    myPages.appliedMaster = myMaster;
}

This article was last modified on October 13, 2014

Comments (0)

Loading comments...