You must be logged in to post Login

Search Forums:


 






Preflight

UserPost

4:25 am
May 31, 2011


jan.vansprengel

New Member

posts 1

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();