Export Sublayers to JPG
Hello,
I'm trying to find a script that can export sublayers to JPG files. I did find some scripts that work but they only look at the top-layers, not at the sublayers.
My Illustrator files looks like this:

What I want is a a script that will export the sub-layers in the layer Print into individual JPG files. The filename will be the name of the file itself + the layer name of that specific layer. So Filename_Option 1.jpg etc... Sometimes we have a second layer with sublayers that also needs to be exported to JPG's. I'm thinking to make an Action that first will delete the layers Languages, Working sheet and Background leaving only the layers in place that needs to be exported. But I can't find a script that can export the sub-layers.
This is the script I could find that almost does the job: Scripting Illustrator: Export Layers as Images
But this script only exports the layer Print and does not look at the sublayers in it.
I hope someone can help!
Jeffrey