Answered
need help with a simple script...
i dont know why but the attached snippet keeps saving my file (currently a .eps) as a .ai file. i need it to save out as a .eps. what do i need to change?
// The active document
var doc = app.activeDocument;
// The path of the original document
var originalDocPath = doc.path;
// The name of the original document
var originalDocName = doc.name;
// Get just the file name. Ignore the file extension
originalDocName = originalDocName.replace(/\.pdf|\.eps|_1c\.eps|\.ai/gi, "")
// Save the active document as a .eps with _1C
doc.saveAs(File(originalDocPath + "/" + originalDocName + "_1C.eps"));
scott
