Hi everyone,
I’m trying to modify the below script to batch save AI to JPGs (instead of saving AI to EPS).
Can anyone suggest a script to do this?
Many thanks
var folder = Folder.selectDialog("Select Source Folder...");
if (folder==null) {
alert("Good Bye");
}
else {
var files = find_files (folder, ['.ai']);
var fileCount = files.length; // count them
if (fileCount>0) {
for (i=0; i<fileCount; i++) {
var idoc = app.open(files);
var saveOpts = new EPSSaveOptions();
saveOpts.pdfCompatible = true;
idoc.saveAs( files, saveOpts );
idoc.close();
}
alert(fileCount + ' file(s) processed');
}
else {
alert("There are no Illustrator files in this folder.");
}
}