Scripting Additions Guide
Table Of Contents
CHAPTER 2
Scripting Addition Commands
Command Definitions 23
Figure 2-4 A Display Dialog dialog box
SYNTAX
display dialog questionString ¬
[ default answer answerString ] ¬
[ buttons buttonList] ¬
[ default button buttonNumberOrName ] ¬
[ with icon iconNumberOrName ]
PARAMETERS
questionString
The string displayed in the dialog box. The string can be up to
255 characters long.
Class: String
answerString The default string provided in a text field that the user can edit.
The string can be up to 255 characters long. If you omit the
default answer parameter, the dialog box does not include an
editable text field. If you specify an empty string (""), the dialog
box has an editable text field with no default answer.
Class: String
buttonList The list of buttons that appear in the dialog box. Each item in
the list is a string containing the text that appears in the button.
The first string in the list is the string for the leftmost button, the
second string is the string for the next button, and so on. You
can specify up to three buttons. If you omit the buttons
parameter, the dialog contains two buttons: Cancel and OK.
Class: List of strings