9 Replies Latest reply on Mar 30, 2016 5:43 AM by Muhammad.eloc

    Does anyone have a script to duplicate multiple pages in CS4?

    graphic doggy

      I know it can be done, but I'm not a programmer. What would be the script to duplicate a user defined number of pages after a user defined page in a mulit-page InDesign document? We have documents with up to 159 pages, but need to have pages within the documents duplicated right after a selected page, not to the end of the document.


      This is all I have of a script for this and I don't know how to make it work or make it user-interactive for page number input:


      --Duplicating more than one page at a time in InDesign CS4
      tell application "Adobe InDesign CS4"


          set mySourcePageNumber to UserInput1
          set numberOfPages to UserInput2
          tell application "InDesign 6.0.3"
              tell active document
                  repeat numberOfPages times
                      set myNewPage to duplicate page mySourcePageNumber
                  end repeat
              end tell
          end tell
      end tell