Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
26 Command Definitions
The System file provides three standard icons to warn the user about problems.
These icons, illustrated in Figure 2-5, have the following meanings:
■ Stop (icon number 0). Use this icon to call attention to a serious problem that
requires the user to choose from alternative courses of action.
■ Note (icon number 1). Use this icon to provide information about a situation
that has no drastic effects. The user usually responds by pressing the
OK button.
■ Caution (icon number 2). Use this icon to call attention to an operation that
may have undesirable results if allowed to continue. You normally give the
user a choice to continue or not.
Figure 2-5 Alert icons
To use these icons, refer to them by number. For example, this script displays
the caution icon, the string, and the default OK and Cancel buttons.
display dialog "Your fuselage is melting. Eject now?" ¬
with icon 2
ERRORS
Error
number Error message
–108 Out of memory.
–128 User canceled.
–192 A resource wasn't found.
–1712 AppleEvent timed out.