Chapter 8. Handlers

If you have any programming experience, you know about the benefits of writing code that can easily be reused for other applications. You also know about the advantages of writing functions that allow your programs to be developed in a modular fashion, thereby making them easier to write, read, and maintain.

In AppleScript, functions go under the name handlers, but they provide the same type of flexibility and offer the same advantages as functions in other languages. In this chapter, you learn how to write your own handlers.

Get Beginning AppleScript® 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.