The power of AppleScript lies in being able to automate many Mac applications. To find out what you can automate, you need to read an app's scripting dictionary.
To do so, launch Script Editor, and select File > Open Dictionary…
Once you choose an app, its dictionary will open up in a new win...