All modern programming languages, including AppleScript, are subject to three basic types of errors. These errors are listed next and are explained in the sections that follow.
No doubt you have made at least a few typos as you have worked on re-creating the different AppleScripts and game scripts presented in this book. The Script Editor discovers typos and makes them known whenever you compile or try to run your AppleScripts. As you have observed, your AppleScripts will not execute as long as a single syntax error, such as a typo, exists within your scripts.
A syntax error occurs whenever you fail to follow AppleScript’s syntax rules as ...