Copy link to clipboard
Copied
I have a 5000 page document that I need to insert a blank page every 5 pages. Are there any scripts available for this?
Have done similar variations of this before. Here you go.
var pgs = app.activeDocument.pages;
var i = 4;
while (true) {
try {
pgs.add(LocationOptions.AFTER, pgs[i], {appliedMaster:null});
i+=6;
} catch(e) {
break; //we're out of range
}
}
Copy link to clipboard
Copied
Have done similar variations of this before. Here you go.
var pgs = app.activeDocument.pages;
var i = 4;
while (true) {
try {
pgs.add(LocationOptions.AFTER, pgs[i], {appliedMaster:null});
i+=6;
} catch(e) {
break; //we're out of range
}
}