Appendix C. AppleScript Reference

IN THIS APPENDIX

  • Class reference

  • Commands reference

  • Operators reference

  • Control statements reference

  • Handler reference

  • AppleScript reserved keywords

  • AppleScript error numbers

In this appendix, I'll try to provide as much reference material as I can on the different working aspects of AppleScript. Before going into too much detail here, please note that Apple has published a very detailed AppleScript Language Guide, available at:

http://developer.apple.com/documentation/
   applescript/Conceptual/AppleScriptLangGuide/
   introduction/ASLR_intro.html#//apple_ref/doc/uid/
   TP40000983-CH208-SW1

Here's the BudURL:

http://budurl.com/stpn

This guide (see Figure C.1) is constantly being updated by the good folks over at the Apple Developer Connection, and can answer a lot of your questions about the deeper, more esoteric aspects of the AppleScript language.

The AppleScript Language Guide

Figure C.1. The AppleScript Language Guide

Class Reference

A class is simply a category of objects that share certain characteristics. Each object in a script is an instance of a specific class — it has the same properties, shares the same kinds of elements, and supports the same kinds of operations.

This section contains an alphabetical list of common objects that are true of every class.

Alias

This is a persistent reference to an existing file, folder, or volume. The target of an alias must already exist.

Properties

  • class: The ...

Get Apple® Automator with AppleScript® Bible 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.