Every Macintosh comes with a program called “Script Editor” that allows you to create AppleScripts. It lets you write them yourself, or it lets you “record” your actions.
On Mac OS 9, the Script Editor is in your “Applications” folder, inside of “Apple Extras” and then “AppleScript”. In Mac OS X, the Script Editor is in the Applications folder, inside of the “Utilities” folder.