Language Guide
357
APPENDIX C
Error Messages C
This appendix lists error numbers and error messages for the following types
of errors:
■ Operating System errors are errors that occur when AppleScript or an
application requests services from the Operating System. They are rare, and
more important, there’s usually nothing you can do about them in a script. A
few, such as "File <name>wasn't found" and "Application isn't
running", make sense for scripts to handle.
■ Apple event errors occur when Apple events sent by AppleScript fail. Many
of these errors, such as "No user interaction allowed", are of
interest to users. Also of interest to users are errors that have to do with
reference forms, as well as errors like "No such object".
■ Apple Event Registry errors are errors returned by applications when
handling standard AppleScript commands (commands that apply to
all applications). Many of these, such as "The specified object is
a property, not an element", are of interest to users and should
be handled.
■ AppleScript errors are errors that occur when AppleScript processes script
statements. Nearly all of these are of interest to users.
For errors returned by an application, see the documentation for that
application.
Figure C-0
Listing C-0
Table C-0