Script for saving current document into .eps and .pdf format in different names
Example:
I have opend document in illustrator namely "Untitled_1.ai". I want to save this file as "Untitled_1.eps" and "Untitled_1_FORPRINT.pdf".
I am facing the issue with the below script, "_FORPRINT" was not coming along with the filename while it is saved as PDF.
var saveOpts = new EPSSaveOptions();
var saveName = new File("~/Documents/Project/Output Files/" + "/" + app.activeDocument.name);
document.saveAs(saveName, saveOpts);
var saveName = new File("~/Documents/Project/Output Files/" + "/" + app.activeDocument.name + "_FORPRINT");
var saveOpts = new PDFSaveOptions();
saveOpts.preserveEditability = true;
PDFSaveOptions.viewAfterSaving = false;
document.saveAs(saveName, saveOpts);
document.saveAs(saveName, saveOpts);