A useful feature of AppleScript Editor is the ability to look at the “dictionary” of scriptable applications. If you look at the dictionary for Safari, Word, or Finder, you can see what things those programs can do, and what commands it takes to get them to do those things.