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

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