Back

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

  • You must be logged in to reply to this topic.Login

Help with Inserting pages script

Return to Member Forum

  • Author
    Posts
    • #95798

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

    • #95799

      Hi,

      Maybe Gabe Harbs, 8 years after having written this code, could help you! … adding 2 radio-buttons

      (^/)

    • #95949

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

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads