2017

Table Of Contents
SPECIFY A RULE ABOVE
set rule on of rule above to true
set text length of rule above to false
set width of rule above to 0.5
set position of rule above to "1 cm"
set color of rule above to "Cyan"
set shade of rule above to 100
end tell
end tell
CONCEPTS
The set events above are comparable to settings in the expanded Rules tab of
the Paragraph Attributes dialog box.
The first
set
event uses a Boolean operator to determine if the paragraph’s rule
above will be turned on (rule on). The
true
Boolean operator indicates that the
paragraph will have a rule above it.
The second
set
event uses a Boolean operator to determine if the rule will
match the text length. The
false
Boolean operator indicates that it will not
match the length of the text. The rule will extend the width of the text box
(minus any defined text inset).
The last four
set
events specify the width, position, color, and shade properties
of the rule.
CREATE THE FIRST PICTURE BOX
tell page 1 of layout space 1 of project 1
make picture box at beginning with properties
{bounds:{"10.386 cm", "20.758 cm", "27.636 cm","33.508 cm"},
color:"None"}
CONCEPTS
The lines above are similar to creating a picture box, sizing and positioning it,
and then specifying a background color as you would in the Picture tab of
the Modify dialog box.
The
tell
statement references the first page of the left-most layout; both are
referenced by index [1].
SCRIPT WRITING SAMPLE
26
|
A GUIDE TO APPLE EVENTS SCRIPTING