2017

Table Of Contents
INSERTION POINTS IN THE HIERARCHY
An insertion point specifies where to place an object within the container
hierarchy. For an example of how to use each insertion point, see the
“Apple Events Terminology” portion of the “Reference Materials” section
of this document.
Beginning:
Used to insert or create an object at the beginning of the speci-
fied container (for example, to create a text box at the beginning of page
one).
Ending:
Used to insert or create an object at the end of the specified container
(for example, to create a page at the end of a layout).
After:
Used to insert or create an object after a specified object (for example,
to move the first page of a layout after the fourth page).
Before:
Used to insert or create an object before the specified object (for example,
to move the last page of a layout before the first page).
Replace:
Used to replace the specified object with a new object (for exam-
ple, to replace one text box with another text box).
EVENTS
Events are the actions that an object is capable of performing. In an English
sentence, an event is com parable to a verb and an object is comparable to a
noun. Events are used to tell objects what to do. QuarkXPress uses most of the
standard events defined by Apple.
SUITES
Groups of events and objects that relate to a similar purpose are arranged
in suites. The Required Suite, Standard Suite, and Miscellaneous Standards
Suite include the events and objects that most Mac OS applications support.
In addition, events and objects specific to QuarkXPress are defined in the
Custom Bleeds Suite, the QuarkCMS Suite, the Layers Suite, the OPI Setup
Record Suite, the QuarkXPress Suite, the QuarkXPress Ancillary Objects Suite,
the Table Suite, the Text Suite, and the Word Filter Suite.
QuarkXPress supports the events and objects in the Required, Standard,
Miscellaneous, and QuarkXPress Suites, as well as objects in the Custom
Bleeds Suite, the CMS Suite, the Layers Suite, the OPI Setup Record Suite,
the QuarkXPress Ancillary Objects Suite, the Table Suite, the Text Suite, and
the Word Filter suite. An object can respond to events from a variety of suites,
and events can apply to objects from a variety of suites. For example, objects
in the QuarkXPress Suite are generally manipulated using events in the
Standard Suite.
REQUIRED SUITE
Events:
All of the events in the Required Suite are handled by events in the
Standard Suite.
Objects:
The Required Suite does not define any objects.
SCRIPTING OVERVIEW
4
|
A GUIDE TO APPLE EVENTS SCRIPTING