dialog.confirm

Syntax dialog.confirm (question)

Params question is a string containing the question you want to ask the user.

Action Asks the user if something is OK and offers a chance to reject the operation.

Returns True if the user clicked on OK, false if Cancel.

Examples if dialog.confirm ("OK to delete System Folder?"){file.deleteFolder ("System:System Folder:")}

   » false

The user doesn't want the System Folder deleted, so he pressed Cancel - dialog.confirm returns false. Braces are needed only in Quick Script window.

Notes The dialog.confirm verb offers the user two possible responses: OK or Cancel.

This dialog is most often used in conjunction with an if statement as shown in the example.

See Also dialog.yesNo

dialog.twoWay

Discuss