·

photo credit: Glyn Lowe Photoworks. via photopin cc

Use AppleScript to batch export Illustrator files to JPG

If you’ve read my previous article about how to perform batch actions in Illustrator, you might also be wondering if this technique can be used to export Illustrator files to JPG or PNG. Well, it can. And it’s simple. In this article I’ll show you how to do this.

Batch export Illustrator files to JPG

If you’re interested in the background story on how AppleScript can be used to create a macro for any given program, or how a batch in Illustrator can be done, read my previous articles.
If you just want to batch export Illustrator files to JPG, you can use the following AppleScript:

There are some parameters here you can tweak, like the quality of the JPEG or if you would like to perform additional scaling.

Batch export Illustrator files to PNG

It’s also possible to export as a PNG image by changing the export rule to something like:

Of course you are free to do as much as you want. You could for example create a JPEG thumbnail, PNG for web and a large JPEG all in one batch. The possibilities are endless!

Visitors give this article an average rating of 3.0 out of 5.

How would you rate this article?

2 thoughts on “Use AppleScript to batch export Illustrator files to JPG”

  1. samantha hodgson says:

    HI, for some reason this script (PNG) isn’t working for me with CC2015—have you had any problems with the CC update? The error I’m getting is : error “Adobe Illustrator got an error: Folder some object wasn’t found.” number -120
    I’m not a developer so I apologize for my lack of intuition on fixing this. Thanks so much for your help!

    1. robstott says:

      Apologies for the late reply, but if you’re struggling with the AppleScript side then you might want to check out Automator and some third-party actions. Much easier to do drag and drop than to write code. Check out:

      https://www.ghostotter.com/batch-converting-adobe-illustrator-files-eps-files/

      …in the interests of transparency, I’m the developer of the above.

      Good luck!

Leave a Reply to robstott Cancel reply