Recently I had a need to have more control over how I exported layers from Photoshop. I was working with sprites and found a need to export groups, and sometimes individual layers in groups. Though Photoshop comes with a built-in script to export separate layers to files, I found it to be quite limited.
So I wrote my own and I want to share it with everyone. Grab it from my GitHub.
A screen shot of what it looks like