Skip to main content
Participant
March 21, 2022
Question

Batch convert eps files to CMYK

  • March 21, 2022
  • 3 replies
  • 854 views

I have 35 individual eps files that I need to convert to CMYK colour mode. Is it possible to run a batch process in Illustrator or Bridge? Otherwise I will have to open, convert and save each one individually 😭

This topic has been closed for replies.

3 replies

Charu Rajput
Community Expert
Community Expert
March 21, 2022

@gabriellecdon 

Try following snippet

var folder = Folder.selectDialog("Select folder");
if (folder != null) {
    var _files = folder.getFiles("*.eps")
    for (var f = 0; f < _files.length; f++) {
        app.open(_files[f]);
        app.executeMenuCommand('doc-color-cmyk');
        app.executeMenuCommand("save");
        app.executeMenuCommand("close");
    }
}

Before running this, you can keep your all eps files in one folder and choose the folder after running the script. The above script will open each eps file exists in the folder and convert to cmyk, save and then close it.

 

Best regards
GerssonDelgado
Inspiring
March 21, 2022

hey @gabriellecdon  try this

 

var doc = app.activeDocument;
var cntDocs = app.documents.length;
for(i=0;i<=cntDocs -1; i++){
    app.executeMenuCommand('doc-color-cmyk');
    app.executeMenuCommand("save");
    app.executeMenuCommand("close");
}
Ton Frederiks
Community Expert
Community Expert
March 21, 2022

You can create an action while recording the open, convert and save process and use Batch from the Actions panel menu to play it on a folder of .eps files.