Apple Developer Connection has posted its Automator Programming Guide. This 84 page tome [[pdf](http://developer.apple.com/documentation/AppleApplications/Conceptual/AutomatorConcepts/AutomatorConcepts.pdf)] explains everything you always wanted to know about coding Automator Actions (but were afraid to ask).