2017

Table Of Contents
CONCEPTS
The statements above are similar to creating and positioning a vertical line
with the Orthogonal Line tool + and choosing Color, Width, and Line
Style from the Style menu.
The
"tell"
statement references the first page of the left-most layout; both are
referenced by index [1].
The
make
event makes a line box with the specified settings and in the specified
location, and specifies the left point and right point of the line in centimeters.
CREATE A HORIZONTAL LINE
make line box at end
tell line box 2
set left point to {"8 cm", "2 cm"}
set right point to {"8 cm", "32 cm"}
set width to 0.5
end tell
end tell
CONCEPTS
The statements above are similar to creating and positioning a horizontal line
with the Orthogonal Line tool + and choosing a Width from the Style
menu.
The
make
event makes a line box with the specified settings and in the
specified location.
The next two
set
events specify the left point and right point of the line
in centimeters.
The last
set
event sets the line width property of the line box to0.5.”
Line widths are set according to points, the default line measurement system
in QuarkXPress.
HIDE GUIDES AND SAVE THE LAYOUT
set guides showing of layout space 1 to false
save project 1 in (thepath & "Constructed Layout")
CONCEPTS
The scripts above simulate choosing Hide Guides from the View menu
and Save As from the File menu.
The first
set
event hides the guides by setting
guides showing
to
false
.
The
save
event saves the project in
thepath
with the name
“Constructed Layout.”
SCRIPT WRITING SAMPLE
A GUIDE TO APPLE EVENTS SCRIPTING
|
31