Skip to main content
trevorc34613356
Participant
October 23, 2018
Question

Batch conversion of .eps to .svg files

  • October 23, 2018
  • 2 replies
  • 9104 views

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:

  1. Prompt the user to select multiple .eps files.
  2. Open the first .eps file.
  3. Remove the extra space by cropping (the same effect as going to Object -> Artwork -> Fit to Artwork Bounds)
  4. 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).
  5. Close the current document without making changes to the original .eps file.
  6. 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

This topic has been closed for replies.

2 replies

Participant
May 12, 2024

Thank you too

 

Silly-V
Legend
October 23, 2018

Have you looked into using Illustrator actions to accomplish this task? It looks like all your requirements can be fulfilled with Illustrator's out-of-the-box Actions feature.