Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Save as EPS with Options

Community Beginner ,
Jun 28, 2019 Jun 28, 2019

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!

TOPICS
Scripting
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 28, 2019 Jun 28, 2019

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.

...
Translate
Adobe
Community Expert ,
Jun 28, 2019 Jun 28, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 31, 2019 Jul 31, 2019
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines