6 Replies Latest reply on Apr 17, 2015 4:24 AM by sebastianw72357417

    Problem with save preflight report using javascript in macintosh

    ID Script

      Hi Experts,

       

      I need to generate preflight report from InDesign CS5. But I got a error in "ExportPreflightReport.jsx"

       

      Here is my code:

       

          var myDocument = app.activeDocument;

          var myProfile = app.preflightProfiles.item("IMAGE_CHECK");

          var myProcess = app.preflightProcesses.add(myDocument, myProfile);

          myProcess.waitForProcess();

          var myResults = myProcess.processResults; 

          if (myResults != "None"){

                myProcess.saveReport(File(File($.fileName).path+"/myreport.pdf"));

         }

       

      Please provide suggestion anything wrong in my code.

       

      Thanks

      Velladurai.G