Answered
add 4 pages
add 4 pages before the current document
apply master pages for added pages and page number option as lower roman
add 4 pages before the current document
apply master pages for added pages and page number option as lower roman
Give this a shot. Change "A-Parent" to whatever the name of the parent you want to apply is. Of course, all the documents you have open need to have that named parent spread.
var docs = app.documents;
var n = docs.length;
var doc, i, master;
while(n--) {
doc = docs[n];
i = 4;
master = doc.masterSpreads.itemByName("A-Parent");
while(i--) {
doc.pages.add(LocationOptions.BEFORE, doc.pages[0], {appliedMaster: master});
}
doc.sections.add(doc.pages[0], {pageNumberStyle: PageNumberStyle.LOWER_ROMAN});
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.