Save as CS6 from CC
Posted: Thu Mar 13, 2014 8:34 pm
I am trying to make a quick "save as" flow to save down Creative Cloud Illustrator files to CS6.
I am pretty close, if I replace the path to the Desktop for the destination file, it will resave my file to the desktop. I thought if I replaced it with the $outfolder, it would place it in the output folder with the same file name. Instead the script just errors out.
iDoc=app.activeDocument;
var destfile = new File($outfolder);
var aisaveOptions = new IllustratorSaveOptions();
aisaveOptions.compatibility = Compatibility.ILLUSTRATOR16;
iDoc.saveAs (destfile, aisaveOptions);
I am pretty close, if I replace the path to the Desktop for the destination file, it will resave my file to the desktop. I thought if I replaced it with the $outfolder, it would place it in the output folder with the same file name. Instead the script just errors out.
iDoc=app.activeDocument;
var destfile = new File($outfolder);
var aisaveOptions = new IllustratorSaveOptions();
aisaveOptions.compatibility = Compatibility.ILLUSTRATOR16;
iDoc.saveAs (destfile, aisaveOptions);