
CHAPTER 8: ExtendScript Tools and Features User notification dialogs 228
This figure shows alert dialogs with error icons.
Global confirm function
Displays a platform-standard dialog containing a short message and two buttons labeled Yes and No.
Examples
This figure shows simple confirmation dialogs on Windows and Mac OS.
This figure shows confirmation dialogs with No as the default button.
confirm()
confirm (message[,noAsDflt ,title ]);
message
The string for the displayed message.
noAsDflt
Optional. When true, the No button is the default choice, selected when the user types
E
NTER. Default is false, meaning that Yes is the default choice.
title
Optional. A string to appear as the title of the dialog, if the platform supports a title.
Mac OS does not support titles for confirmation dialogs. The default title string is
“Script Alert.”
Returns true if the user clicked Yes, false if the user clicked No.
Comentários a estes Manuais