: Illustrator cc Script - Save to destination I've found a Illustrator cc script that i've adapted and added to make my life 5 times easier. To make it 6 times easier i'd love to save it to
I've found a Illustrator cc script that i've adapted and added to make my life 5 times easier. To make it 6 times easier i'd love to save it to a destination folder chosen in the diaglog box at the start. For the life of me I can't work out what to do. Everything I try either saves it in the folders current location or in recent location.
What the current script does is:
Saves .ai file out as 3 separate files based on some presets with the following extentions .ai OL.pdf and OL_LR.pdf
#target illustrator #targetengine "main"
for (x=0;x<app.documents.length;x++)
{
var workingDoc = app.documents[x];
var workingDocFile = workingDoc.fullName;
var HighPreset = 'High Res';
var LowPreset = 'Low Res';
// populate these with your settings
var aiFile = new File(workingDocFile.toString().replace(".ai","_OL.ai"));
workingDoc.saveAs(aiFile);
var lowResOpts = new PDFSaveOptions();
lowResOpts.pDFPreset=LowPreset;
var highResOpts = new PDFSaveOptions();
highResOpts.pDFPreset=HighPreset;
var lowResFile = new
File(workingDocFile.toString().replace(".ai","_OL_LR.pdf"));
workingDoc.saveAs(lowResFile,lowResOpts);
var highResFile = new
File(workingDocFile.toString().replace(".ai","_OL.pdf"));
workingDoc.saveAs(highResFile,highResOpts);
}
Any help would be much appreciated.
Thanks,
Phil
More posts by @LarsenBagley460
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.