Multiexporter
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).
Written by Tom Byrne.
The source was found here. See also here.
Before
After
Click here to download the script.