2017

Table Of Contents
SET DEFAULT SPECIFICATIONS FOR A NEW LAYOUT
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
CONCEPTS
The first three set statements are similar to setting default specifications in
the New Layout dialog box. The next set statement is similar to choosing
Show Guides from the View menu. The last three statements are settings
in the General pane of the Preferences dialog box.
The first two
set
events specify the page height and page width properties.
The third
set
event determines whether the layout will have an automatic text
box, depending on the Boolean operator. If the Boolean operator is
false
, the
layout will not have an automatic text box. If the Boolean operator is
true
,
it will.
The fourth
set
event determines whether the layout will display guides, depend-
ing on the Boolean operator. If the Boolean operator is
true
, all guides will
display. If the Boolean operator is
false
, all guides will be hidden.
The fifth
set
event determines whether the guides will display in front of the
page elements. The
true
Boolean operator indicates that the guides will display
in front.
The last two
set
events specify the default horizontal and vertical measurement
system as centimeters.
CREATE A NEW LAYOUT WITH DEFAULT SPECIFICATIONS
make new project at end
CONCEPTS
This
make
event is similar to clicking OK in the New Layout dialog box.
The first parameter, layout, refers to the object that will be created.
You can make an object at any insertion point: beginning, ending, after, before,
or replace. However, layouts are always created at the end.
SCRIPT WRITING SAMPLE
20
|
A GUIDE TO APPLE EVENTS SCRIPTING