I have a Java script that will apply any action in the action palette to selected layers in Photoshop.
The problem is that some of the actions that I use make new layers, creating problems.
1) Add to the script to pop the layer out onto it's own document, apply the action, the pop it in (I have an action that will do this, so you can take from that action).
So, the script is 90% there, just need this little function added.
I have 4 years' experience working with Photoshop automation via Adobe's built-in scripting language, and 15+ years programming experience in other environments.