Any action that is scriptable will be recorded and placed into Script Editor automatically.
Recording actions allows you to quickly build up a basic AppleScript. For example, if you go into Script Editor and hit the “Record” button before visiting a web page, you might end up with something like:
tell application "Netscape Communicatorª"
activate
GetURL "www.godsmonsters.com" inside window 1
end tell
This tells the program (“application”) called “Netscape Communicator” to first active, and then get the URL (“GetURL”) called “www.godsmonsters.com”. Place it into “window 1”.
Let’s say that you want to always start up your computer with a web browser for four news sites, each in its own window, arranged on your screen.
Go into Script Editor and get rid of whatever is currently there. Click “Record” and then go into Netscape Communicator. Open a new window for each of:
o www.cnn.com
o news.google.com
o news.yahoo.com
o cerebus.sandiego.edu/~jerry/blog/
Once you’ve arranged the windows how you like them, save your script. Call it “Open News” and save it as format “Application”.
Quit Netscape and double-click your “Open News” AppleScript. It will open the windows mostly as you set it. There may be some issues--some of your steps were scriptable and others weren’t.
Recording steps is often the best way to begin creating an AppleScript.