Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
I reached out to Harbs through the Adobe scripting forum……….but he hasn’t been on there in months, Thanks!!
Hello forum!
Can someone help me add a drop down list for odd or even pages to this existing script?
I can modify it so it will create new pages “BEFORE” doc.pages but I would like to have the two options in one script…… not two separate scripts.
Thanks for any help in advance!
MPB
var doc = app.documents[0];
var masterNames = doc.masterSpreads.everyItem().name;
var d = app.dialogs.add({name:”pick a master spread”});
d.dialogColumns.add().staticTexts.add({staticLabel:”Master Pages:”});
var dd = d.dialogColumns.add().dropdowns.add({stringList:masterNames});
if(d.show()){
var index = dd.selectedIndex;
d.destroy();
} else {
d.destroy();exit();
}
var master = doc.masterSpreads.item(index);
for(var i=doc.pages.length-1;i>=0;i–){
doc.pages.add(LocationOptions.AFTER,doc.pages[i],{appliedMaster:master});
}
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.