O'Reilly logo

Apple Pro Training Series: AppleScript 1-2-3 by Bill Cheeseman, Sal Soghoian

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

Lesson 15. Script Properties

Basics

Data Persistence

What’s Next?

You already know that many application objects in AppleScript have properties. A Finder disk object has capacity and free space properties; an outgoing message object in Mail has content, sender, and subject properties; and a Safari document object has source and text properties. These properties have in common the ability to provide information to your scripts and, in many cases, to change application behavior and to store information from your scripts in a persistent way.

In AppleScript, you can think of a script as just another object, and it can have properties, too. The difference is that you define a script’s properties yourself and give them any name you like. When you ...

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