Hi,
Does somebody know how to limit the preflight to specific pages? Tried the following script, but that one gives me an error. Any help would be much appreciated.
Thanks.
Jan.
var myErrorProfile = "TestProfile";
var doc = app.activeDocument;
var myOptions = app.activeDocument.preflightOptions;
myOptions.preflightScope ="1″;
// Perform the preflight with the error profile
var profile = app.preflightProfiles.item(myErrorProfile);
var myprocess = app.preflightProcesses.add(doc, profile,myOptions);
myprocess.waitForProcess();
var results = myprocess.processResults;
myprocess.saveReport(File("~/Desktop/Errors.txt"), false);
if (results.substring(0,4) !="None"){
myErrors ++
}
myprocess.remove();