Batch conversion of .eps to .svg files
I am a new AI user and need a script to batch convert hundreds of existing .eps files to .svg for eventual use in Madcap Flare. Hopefully this should be a fairly simple script, but I have decided to ask here because of my lack of experience. The goal is to do a batch conversion of several hundred .eps files previously produced in Adobe Illustrator, each of which must be cropped io remove all extra artboard space which is unused. So essentially, I need it to do the following:
- Prompt the user to select multiple .eps files.
- Open the first .eps file.
- Remove the extra space by cropping (the same effect as going to Object -> Artwork -> Fit to Artwork Bounds)
- Save the current, modified document as an Illustrator .svg file with the same name as the original file (but obviously the .svg extension instead of .eps).
- Close the current document without making changes to the original .eps file.
- Repeat steps 2 through 6 for the remainder of the files that were selected.
Unfortunately, I have no idea how I could write a script to accomplish this. Any examples would be greatly appreciated. At the very least, help guide me in the right direction here. Thank you so much.
Trevor
