Script Editor

The Script Editor is an application which is used to create AppleScripts. It is standard on every Macintosh that supports AppleScript.

The Script Editor allows you to type in code, and also has a "Record" button to set it into "watch-me" code, so that it records your actions and does the coding for you.