Problem with save preflight report using javascript in macintosh
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
