O'Reilly logo

Apple® Automator with AppleScript® Bible by Thomas Myer

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

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

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