Lesson 20. Droplets

Event Handlers and Applets

The Open Handler

The open, run, and reopen Commands

What’s Next?

With this chapter, you’ll begin to learn about a variety of AppleScript techniques you can use to react to actions somebody performs on your computer, such as adding a file to a folder.

It is often useful to write scripts that run automatically and immediately in reaction to events such as this in order to help you decide how to respond or to take care of menial tasks without requiring your personal attention. For example, you might write a script that automatically updates a log file or presents an alert every time somebody on your office network adds a file to the Drop Box folder in your Public folder. Or you might write a script ...

Get Apple Pro Training Series: AppleScript 1-2-3 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.