2016

Table Of Contents
When one or more items are selected in the left column, their definitions
display in the right column. In the window shown above, the open event in
the Standard Suite is selected. The right column displays the parts of the event
as well as the types of information the event expects. An appropriate open
event might be:
Open alias("Hard Drive:Desktop Folder: my Layout") use doc prefs
yes remap fonts no
In this case, the script uses the parameters
use doc prefs
and
remap fonts,
but does not use
do auto picture import
. The square brackets ([ ]) in the
dictionary indicate that the
do auto picture import
parameter is optional.
ELEMENTS AND PROPERTIES
When viewing an entry for objects, additional subheadings may display in the
column called “Elements and Properties.”
In simple terms, elements can be thought of as objects that “belong” to the
selected object in the hierarchy. For example, a page can hold generic, text,
picture, and line boxes, as well as images, and horizontal and vertical guides,
so you will see these listed as elements of the page. Properties, on the other
hand, are characteristics of the object itself. Using page as an example, you will
find properties such as page number, column count, and gutter width. These
are not objects themselves, but do describe how a page appears and behaves.
INHERITED PROPERTIES
You may notice an <inheritance> entry under properties. This indicates which
other objects contribute to the appearance and behavior of the selected object.
For example, select “text box” in your QuarkXPress dictionary. Under
Properties, these entries display:
<inheritance> generic box —- All properties and elements of the
given class are inherited by this class.
<inheritance> text path properties —- All properties and elements
of the given class are inherited by this class.
<inheritance> text container properties —- All properties and
elements of the given class are inherited by this class.
This means that a text box, while having certain specific properties of its own,
also has all the properties shown in the dictionary entries for generic box, text
path properties, text container properties, and for box properties and containing
box properties that are inherited by generic box. In other words, all boxes have
a certain set of common properties that define how they behave as boxes. Of
those, some boxes have additional properties that enable them to contain other
information; in turn, some of these boxes are even more specialized, holding
only text and therefore have properties appropriate to perform that function.
DATA COERCION CHART
42
|
A GUIDE TO APPLE EVENTS SCRIPTING