2017

Table Of Contents
Items can be represented as or coerced to any of the other items that are in the
same section in the chart above. For example, if the horizontal measure is set
to inches, you can coerce the returned value to points by using
get page width
as point units
.
DATA COERCION USING THE APPLESCRIPT DICTIONARY
Every scriptable file has an internal dictionary that defines the Apple events it
can respond to, as well as the acceptable options or required parameters for those
commands. These dictionaries can be accessed by any script-editing application,
including Apple’s Script Editor. Using Script Editor, choose Open
Dictionary from the File menu and navigate to the intended application. If
an application displays in the Open Dictionary dialog box, it has a scripting
dictionary, and can be considered scriptable. When you open the diction-
ary, a two-part window displays:
The AppleScript dictionary window
Although Apple events definitions are built into an application itself, the
dictionary interface is provided by the specific script-editing application.
Third-party script editors may have capabilities beyond those of Apple’s
Script Editor program.
EVENTS, OBJECTS, AND PARAMETERS
The left column of the dictionary displays a list of events and the objects
on which those events can operate. Events display in Roman typeface, while
objects appear in italics. (Bold typeface indicates words or phrases that have
special meaning to the application.)
DATA COERCION CHART
A GUIDE TO APPLE EVENTS SCRIPTING
|
41