6 Replies Latest reply on Jun 3, 2015 9:08 AM by mark.stanley

    I'm getting an invalid object error using the following page duplication script, any idea why?

    mark.stanley

      var myDocument = app.documents.item('C:\Users\jdoe\Desktop\Source.indd');

      var sourcePages = myDocument.pages.item(0);

      sourcePages.duplicate(LocationOptions.AFTER, app.layoutWindows[0].activePage);

       

      I'm attempting to duplicate a page from a specific document and place it just after the current active page.