O'Reilly logo

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition by Hanaan Rosenthal, Hamish Sanderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required