Copy link to clipboard
Copied
Hello! I'm relatively new to scripting for Illustrator & was wondering if anybody currently has a script that could automate a task for me.
I work in screen printing & have to save every art file as an .EPS to a hot folder on our server. I'm looking to by-pass the Save As & choosing options for saving every art file as an EPS, as every file is saved in the same folder with the same options, everytime.
The breakdown would be as follows:
- Save as .EPS
- Use Artboards
- Range: 1
- Destination: S:\SCREEN ROOM
- Version: Illustrator CC EPS
- Preview Format: TIFF (8-bit Color)
- Transparent
- Embed Fonts (for other applications) YES
- Inclue Document Thumbnails NO
- Include CMYK PostScript in RGB Files YES
- Compatible Gradient and Gradient Mesh Printing NO
- Adobe PostScript: LanguageLevel 3
If anybody could point me in the right direction, I'd greatly appreciate it. Thanks!
Save an opened ai file as eps?
Give it a try:
...// regards pixxxel schubser
var aDoc = app.activeDocument;
var root = "/s/SCREEN_ROOM/"; // Please do not use spaces in your file system !!
var epsFile = new File (root+aDoc.name.replace (".ai", ".eps"));
var epsSaveOpts = new EPSSaveOptions ();
epsSaveOpts.saveMultipleArtboards = true;
epsSaveOpts.artboardRange = '1';
epsSaveOpts.compatibility = Compatibility.ILLUSTRATOR17;
epsOptions.preview = EPSPreview.COLORTIFF;
epsSaveOpts.flattenOuput = OutputFlattening.
Copy link to clipboard
Copied
Save an opened ai file as eps?
Give it a try:
// regards pixxxel schubser
var aDoc = app.activeDocument;
var root = "/s/SCREEN_ROOM/"; // Please do not use spaces in your file system !!
var epsFile = new File (root+aDoc.name.replace (".ai", ".eps"));
var epsSaveOpts = new EPSSaveOptions ();
epsSaveOpts.saveMultipleArtboards = true;
epsSaveOpts.artboardRange = '1';
epsSaveOpts.compatibility = Compatibility.ILLUSTRATOR17;
epsOptions.preview = EPSPreview.COLORTIFF;
epsSaveOpts.flattenOuput = OutputFlattening.PRESERVEAPPEARANCE;
epsSaveOpts.embedAllFonts = true;
epsSaveOpts.includeDocumentThumbnails = false;
epsSaveOpts.cmykPostScript = true;
epsSaveOpts.compatibleGradientPrinting = false;
epsSaveOpts.postScript = EPSPostScriptLevelEnum.LEVEL3;
aDoc.saveAs (epsFile, epsSaveOpts);
If that works for your needs.
Have fun
Copy link to clipboard
Copied
Awesome! Works perfectly after I changed the destination folder to SCREEN_ROOM & changed line 11 to:
epsSaveOpts.preview = EPSPreview.TRANSPARENTCOLORTIFF;
Thank you for your help! You've saved me countless hours of redundancy.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now