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.
Answer
There are different ways to achieve what you’re after. You just have to decide what works best for your workflow/platform.
- Have the script assign all *.ai files in a given directory to an array, then loop through.
- 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.
- 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.
- 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.
Attribution
Source : Link , Question Author : LK__ , Answer Author : plainclothes