AppleScript User Interaction is part of Standard Additions. You can find the full documentation in the dictionary StandardAdditions.sdef through Script Editor's Open Dictionary.
Display a dialog or alert
AppleScript can display dialogs and alerts to the user. Dialogs are for optionally requesting user input.
Upon clicking a button, the button clicked is returned:
{button returned:"button one"}
Syntax:
display dialogtext [default answer text] [hidden answer boolean] [buttons list of text] [default button text/integer] [cancel button text/integer] [with title text] [with icon text/integer/stop/note/caution/file] [giving up after integer]
display alerttext [message text] [as critical/informational/warning] [buttons list of text] [default button text/integer] [cancel button text/integer] [giving up after integer]
display notificationtext [with title text] [subtitle text] [sound name text]
choose from list [with title text] [with prompt text] [default items list of text/number] [OK button name text] [cancel button name text] [multiple selections allowed boolean] [empty selection allowed boolean]
choose URL [showing list of Web/FTP/Telnet/File/News/Directory/Media/Remote] [editable URL boolean]
choose color [default color RGB color]
Contributors
Topic Id: 6546
Example Ids: 22409
This site is not affiliated with any of the contributors.