And to see the extent of AppleScript support, open the /Applications/Utilities folder and single-click the AppleScript Editor to launch it.
Select File > Open Dictionary...
A scrollable selection of scriptable applications becomes viewable as the following image shows. You click on the particular application (e.g. Pages) to reveal the specific application's scriptable descriptions. In addition to the Apple Support Community, you can visit macscripter dot net for AppleScript solution examples. Another useful site is apple dot stackexchange dot com/questions/tagged/applescript.