Can you read a layered PSD image with Python? Ive tried PIL, but it seems to only have access to the first layer. Another problem is that the result is black if the layer was set to βhiddenβ in the program.
psd-tools will allow you to write scripts that read PSD files. I am using it for several things now, and it has been working well so far.
https://github.com/kmike/psd-tools
Have you tried this way? http://techarttiki.blogspot.com/2008/08/photoshop-scripting-with-python.html
It uses the Python Win32 extension.