Scripting Additions Guide

CHAPTER 2
Scripting Addition Commands
22 Command Definitions
EXAMPLES
set timeOfTransfer to current date
get timeOfTransfer
if (current date) = ¬
date "Saturday, January 23, 1993 12:00:00 AM" then
print the front window
else
return "The date is not " & ¬
"Saturday, January 23, 1993 12:00:00 AM"
end if
ERRORS
Display Dialog 2
The Display Dialog command displays a dialog box like the one shown in
Figure 2-4. The dialog box contains a string and one or more buttons, such as
Yes and No, or OK and Cancel. The dialog box may also contain an icon and a
field in which the user can enter text.
The Display Dialog command is the only command provided by the Display
Dialog scripting addition.
Error
number Error message
–108 Out of memory.
–1700 Can't make some data into the expected type.
–1701 Some parameter is missing for <commandName>.
–1704 Some parameter was invalid.
–1705 Operation involving a list item failed.
–1718 Reply has not yet arrived.