Run Illustrator script on multiple files

Is there a way to make an Illustrator script run over all files in a certain folder and perform operations on these?

I am using CS5 on mac.


There are different ways to achieve what you’re after. You just have to decide what works best for your workflow/platform.

  1. Have the script assign all *.ai files in a given directory to an array, then loop through.
  2. If you’re on OS X, set up an AppleScript droplet that will do the same as option 1 for any directory dropped on it.
  3. Create a file prompt at the start of the script with multiple select enabled. This can be done with AppleScript, but I’m not sure about js.
  4. Not exactly what you described but, the script could assign all open docs to an array. This way you wouldn’t be limited by directory.

Source : Link , Question Author : LK__ , Answer Author : plainclothes

Leave a Comment