Question
Apply script on specific pages only
Hi!
I would like to know how to apply some script on specific pages only.
I would like to apply it on pages number 4 to 50 on a 50 page project, and so exclude page 1, 2 and 3.
Here is my actual script:
var doc = app.activeDocument,
objStyle = doc.objectStyles.itemByName('stylenamechosen'),
a = doc.allGraphics,
i = a.length;
while( i-- ) a.parent.appliedObjectStyle = objStyle;
Please let me know.