A while ago I needed to do some stuff in Photoshop that wasn't easy to do from the interface. I decided to automate it from C#.
John Deurbrouck just sent me a link to a page where he has decoded some more of the wacky photoshop ScriptListener output. He even has a routine to drive PS to convert a RAW image.
Check it out here and contact John if you are interested in moving the knowledge in this area forward.
Very cool, John!