I have a lot of existing eps-files of which the option "embed all fonts" is unchecked.
Know I have to check the "embed all fonts" in the existing eps-files.
I tried to modify the script below, but it seems that the embedallfonts is NOT working.
When I do it manually (without script), then it works fine. With script, it doesn't work.
#target illustrator
// PART 1
var doc = app.activeDocument;
// PART 2 -> herbewaren eps als eps
var destFile = new File(decodeURI(doc.fullName).replace(/(?: \[Converted\])?\.eps$/, '.eps')); // also remove "[Converted]" from filename
var options = new IllustratorSaveOptions({}); // new save as options
options.compatibility = Compatibility.ILLUSTRATOR15; // save as CS5
options.embedICCProfile=true;
options.embedAllFonts=true;
options.pdfCompatible = true;
options.useCompression = true;
doc.saveAs(destFile, options); // save the file in the same foldere as the eps
// PART 3
doc.close(SaveOptions.SAVECHANGES); // close the file with saving
Another question will be: can I get a dialog box to put in the path to the eps-files, I can do thereafter it in batch instead of each time opening and closing a file.