Copy link to clipboard
Copied
Hi! I'm super new to scripting, so hopefully I'm not missing something obvious. I have icons designed in Ai that I am prepping to batch import over into Fontlab, which can import EPS files, but only in the Illustrator 8 EPS legacy format. I can get my code to save as an EPS, but I cannot seem to get it to save it to the right legacy format. When I use the menu items to save it as an EPS without scripting, I can set it to Illustrator 8 and have no problems. But for some reason my script cant acheive that exact legacy file.
This is the way that I am currently saving out these eps files, which is a part of a larger loop where I open files, strip some unnecessary fluff, then save them as an EPS and move onto the next file:
var epsOptions = new EPSSaveOptions();
epsOptions.compatability = Compatibility.ILLUSTRATOR8;
currentDoc.saveAs( files, epsOptions );
Any suggestions, or is there something that I'm missing? This seems straightforward, but I'm kinda pulling my hair out.
Thanks!
benh11105221, hello!
var epsOptions = new EPSSaveOptions ();
var currentDoc = activeDocument;
var epsFile = new File (currentDoc.fullName);
epsOptions.compatability = Compatibility.ILLUSTRATOR8;
currentDoc.saveAs (epsFile, epsOptions);
This snippet is working fine. Аnd your exemple should work well, unless....
show your code entirely.
And just in case, tell the OS version and Illustrator.
Updated Most likely the problem elements currentDoc or file .
New You are debugging
...Copy link to clipboard
Copied
benh11105221, hello!
var epsOptions = new EPSSaveOptions ();
var currentDoc = activeDocument;
var epsFile = new File (currentDoc.fullName);
epsOptions.compatability = Compatibility.ILLUSTRATOR8;
currentDoc.saveAs (epsFile, epsOptions);
This snippet is working fine. Аnd your exemple should work well, unless....
show your code entirely.
And just in case, tell the OS version and Illustrator.
Updated Most likely the problem elements currentDoc or file .
New You are debugging code in ESTK? It would be correct.
Because you will immediately see what line the error. And get a complete picture of what is going on in your code at runtime.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more