New answers tagged photoshop-scripting
The script here worked perfectly: http://www.ps-scripts.com/bb/viewtopic.php?f=9&t=4227
I have used ChangeColor in the past to achieve this. Here is the GitHub repo > https://gist.github.com/theinsanecow/895810 It sounds like this is exactly what you're after, but even if it's just good as a reference point for your script, it should help.
file / scripts / export layers to files
Check the following links I hope it will give you a jump start Introduction To Photoshop Scripting 10 Photoshop Scripting Tutorials Also you can check adobe official Scripting Guid. (Just Google "Photoshop Developer Center scripting" and it should be from the top results if not the first :) )
Have you tried for a workaround using Photoshop Actions. Don't forget to keep the backup of your PSD. Turn off all the layers and give your canvas a little bigger size before creating the action. 1 - Create an Action 2 - Make visible one layer 3 - Trim the transparent pixels 5 - Save as Jpeg 6 - Delete the layer 7 - Give the canvas size some bigger ...
Top 50 recent answers are included