1 Reply Latest reply on Jul 23, 2014 1:43 AM by Chinnadk

    Error handle system

    Dapeamel Level 1

      Hello everyone

       

      How do I save the Error window text to a text file each time I get a error while I run a indd script?

       


      Thank you in advance                    

        • 1. Re: Error handle system
          Chinnadk Level 4

          Hi,

           

          Try this,

           

          var _file = new File(app.activeDocument.fullName.replace(".indd",".txt");
          _file.open('w');
          try
          {
                  //your code
              }
          catch(e)
          {
                  _file.write(e);
              }
          _file.close();
          

           

          Regards,

          Chinna