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

Batch Convert AI to JPG

New Here ,
Jun 06, 2017 Jun 06, 2017

Hi everyone,

I’m trying to modify the below script to batch save AI to JPGs (instead of saving AI to EPS).

Can anyone suggest a script to do this?

Many thanks

var folder = Folder.selectDialog("Select Source Folder...");

if (folder==null) {

                    alert("Good Bye");

}

else {

    var files = find_files (folder, ['.ai']);

          var fileCount = files.length; // count them

         

  if (fileCount>0) {

                    for (i=0; i<fileCount; i++) {

            var idoc = app.open(files);

            var saveOpts = new EPSSaveOptions();

            saveOpts.pdfCompatible = true;

            idoc.saveAs( files, saveOpts );

            idoc.close();

                    }

        alert(fileCount + ' file(s) processed');

          }

          else {

                    alert("There are no Illustrator files in this folder.");

          }

}

TOPICS
Scripting
4.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
Adobe
Community Expert ,
Jun 06, 2017 Jun 06, 2017
LATEST

Probably, below article helps you.

Re: Export JPEG

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