Script illustrator error 1200
Hi all,
I have some troubles with an .ai script, its role is to export PDF in High and Low resolution at the same time.
Could someone help me please?
Here is the error flash message:
Error 1200: an illustrator error occurred: 1129270854 ('FNOC')
Line: 13
->
workingDoc.saveAs(lowResFile,Options);
And here is the script:
#target illustrator
for (x=0;x<app.documents.length;x++) {
var workingDoc = app.documents[x];
var workingDocFile = workingDoc.fullName;
var lowResFile = new File(workingDocFile.toString().replace(".ai","_LR.pdf"));
var Options = new PDFSaveOptions();
// populate these with your settings
Options.pDFPreset = '[Smallest File Size]';
workingDoc.saveAs(lowResFile,Options);
var highResFile = new File(workingDocFile.toString().replace(".ai","_HR.pdf"));
var highResOpts = new PDFSaveOptions();
// populate these with your settings
highResOpts.pDFPreset = '[High Quality Print]';
workingDoc.saveAs(highResFile,highResOpts); workingDoc.close(SaveOptions.DONOTSAVECHANGES);
alert( 'File has been saved as Low Resolution and High Resolution PDFs.'); }
For info, I have illustrator in French and the latest version. I tried to change '[Smallest File Size]' and '[High Quality Print]' with the french translation but it did'nt worked.
Thank you very much !
