UI Actions brings "universal attachability" to AppleScript. It is an AppleScript utility to enhance your control over applications running on your computer. Attach a UI Action script to any standard native Mac OS X application. UI Actions will automatically run the script whenever the user makes changes in the application's user interface. You select the user actions that trigger a UI Action script, such as choosing a menu item, changing the value of a text field, opening a drawer or window, and activating an application.
Includes UI Actions Setup, extensive documentation, and many example scripts.
30-day free trial version.