3 Replies Latest reply on Sep 28, 2017 2:30 AM by yadavs92328

    [JS CS3] Moving pages from one doc to another

    KeithGilbert Level 1
      I'm having trouble understanding the pages.move method, when used to move pages from one file to another. With one ID file open, I want to create another file, and then move pages from the first file to the second. At this point, the new, second file is untitled. Must I save it first? Here is what I have so far...

      var oldDocument = app.activeDocument;
      var newDocument = app.documents.add();
      // Move pages

      I'm having trouble figuring out how to reference both documents properly.