Chapter 6. Learning to Work with AppleScript Objects

Now that we've discussed the principles of application scripting in detail, let's turn our attention to the AppleScript language itself.

Chapter 2 introduced you to the four key concepts that underlie AppleScript (and other scripting languages):

  • How AppleScript represents information as objects

  • How AppleScript manipulates objects using commands, operators, and variables

  • How AppleScript makes decisions on what to do and when to do it

  • How AppleScript organizes code using handlers and script objects

I will cover the last two concepts—making decisions and organizing your code—later in the book, in Chapters 14, 15, 18, and 19. For now, I want to spend some time exploring the first two concepts.

Although ...

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.