I have many PSDs that each contain 2+ layers that I need to export as layers. For a single PSD I can use:
File>Scripts>Export Layers To Files ...
However if I use this script (in a droplet) I have to hard-code the destination folder and File Name Prefix. This is no good as many of the PSDs contain layers with the same names, so they would overwrite each other and I need each file to be prefixed by the PSD name. So a layer called text_1 from a PSD called doc_1 would be called doc_1_text_1, and a layer called text_1 from a PSD called doc_2 would be called doc_2_text_1 or something similar.
Is there any way I can do this? I'm happy to hard-code the destination folder, but I need the script to use whatever the name of the PSD is for the prefix.