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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.