Chapter 16. Interacting with the User

You'll often need to get users involved during the execution of your scripts, and AppleScript has a number of basic user interaction commands available. These commands are all part of the Standard Additions scripting addition's User Interaction suite, and they allow your scripts to interact with the user in various ways; for example, you can display informational or warning messages to the user, prompt her to input some text, to select items from a list, or to choose files and folders for your script to process.

Creating Basic Dialog Boxes and Gathering Text Input

In this section, we'll look at three commands for displaying messages and gathering general user input: display dialog, display alert, and choose ...

Get Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.