ryankeeter.com — Many advanced programs such as the entire Microsoft Office suite has the ability to record actions such as macros. These macros can be reran by performing certain events, such as on startup, on shutdown, or on some type of keyboard command being struck. This type of behavior is called an action within Photoshop, and I believe that the true power of Photoshop scripting is to call these actions from code. When you create these actions, you can have them do anything in a recorded sequence, and calling them from a script is puuurrdy powerful. The next portion will talk about these actions really quick, but if you know all about them, then scroll down to the scripting portion.
original link