I modified the original Adobe Export Layers to Files.jsx to support trimming layers with transparency when exporting to jpeg.
Because of it's size you can find the modified script at http://ps-scripts.com/bb/viewtopic.php?f=10&t=3971
Thanks Michael - that's just what I wanted.
Thank you for that script, works like a charm.
Any chance of a similar one but with a .TIFF export?
I have a bunch of them with multiple photos bundled together (an A4 scan), that I would like split and trimmed. Without any compression, if possible (like in an .jpg export)