Lesson 15. Script Properties
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 ...
Get Apple Pro Training Series: AppleScript 1-2-3 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.