2017

Table Of Contents
ACTIVATE QUARKXPRESS
activate
CONCEPTS
This statement is similar to choosing QuarkXPress from the QuarkXPress
menu.
Activate
is a standard command used with AppleScript.
ESTABLISH THE PATH
set thepath to (Choose folder with prompt "Select the Sample
Documents folder inside the Apple Events Scripting folder of
your QuarkXPress folder:") as text
CONCEPTS
This statement establishes a path for sample text and image files that will be
used later in the script.
The AppleScript example uses the choose folder command, which displays an
Open dialog box that you can use to specify the desired folder.
This statement gives the variable thepath a string value that is the path to the
location of the text and image files.
SAVE CURRENT LAYOUTS DEFAULT SPECIFICATIONS
tell default document 1
set oldHeight to page height
set oldWidth to page width
set oldAutoTextBox to automatic text box
set oldGuidesShowing to guides showing
set oldGuidePos to guides in front
set xDocMeasure to horizontal measure
set yDocMeasure to vertical measure
CONCEPTS
The
tell
statement references the current default document by index [1].
(The default document is the object that contains all default layout settings
including colors, style sheets, hyphenation and justification settings, layout
settings specified in the New Layout dialog box, and all preferences.)
AppleScript does not require that get be specified; get is assumed if it is
not specified.
SCRIPT WRITING SAMPLE
A GUIDE TO APPLE EVENTS SCRIPTING
|
19