Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Help with Inserting pages script #95949

    I reached out to Harbs through the Adobe scripting forum……….but he hasn’t been on there in months, Thanks!!

    in reply to: script to add separators #95797

    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});
    }

Viewing 2 posts - 1 through 2 (of 2 total)