O'Reilly logo

AppleScript® Programming for the Absolute Beginner by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Examining the Three Basic Types of Errors

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.

  • Syntax errors

  • Logical errors

  • Runtime errors

Fixing Syntax Errors

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required