7 Replies Latest reply on Oct 26, 2011 12:54 PM by Harbs.

    Force revert in InDesign CS4 js

    Yuliaart Level 1

      Hi,

       

      I need to revert my indd document to the last saved state in the end of the script and suppress the dialog box for it. When I run this line:

       

      myDoc.revert();

       

      I get the dialog box.

       

      So I tryed:

       

      myDoc.revertToProject();

       

      and it gives me an error. What do I need to do to make it work.

       

      Thank you for your help.

      Yulia