8 Replies Latest reply on Dec 10, 2011 5:58 AM by John Hawkinson

    Object is Invalid error when removing page?

    John-PCS Level 1

      I'm trying to simply delete the first page in an InDesign CS4 document, but I keep getting an Object is Invalid error (Error Number 45) on page.remove(). See script below:


      var myDoc = app.activeDocument;

      var page = myDoc.pages[0];



      I should note that it is not a blank page.


      Any help would be appreciated. Thanks!