2016

Table Of Contents
THE LAYOUT CONSTRUCTION SCRIPT
Before reading this section, run the “Layout Construction” AppleScript script to
familiarize yourself with its actions. The script and the files it requires are in
the “Apple Events Scripting” folder within the “Documents” folder inside the
QuarkXPress application folder.
APPLESCRIPT SYNTAX: LAYOUT CONSTRUCTION SCRIPT
tell application "QuarkXPress"
activate
try
set thepath to (choose folder with prompt "Choose Sample " &
"Documents folder in Documents:Apple Events Scripting:")
as text
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 oldGruidesFront to guides in front
set xDocMeasure to horizontal measure
set yDocMeasure to vertical measure
set page height to "30 cm"
set page width to "34 cm"
set automatic text box to false
set guides showing to true
set guides in front to true
set horizontal measure to centimeters
set vertical measure to centimeters
end tell
make new project at beginning
SCRIPTING OVERVIEW
A GUIDE TO APPLE EVENTS SCRIPTING
|
11