Text Suite
453
Example
This example applies a border around the first character in the selection. If nothing is selected, the
border is applied to the first character after the insertion point.
set visible of (get border character 1 of text object of selection) to true
This example applies a bottom border below all centered paragraphs in the active document.
set allPara to paragraphs in active document
repeat with x in allPara
if alignment of x is align paragraph center then
set line style of (get border text object of x which border ¬
border bottom) to line style single
set line width of (get border text object of x which border ¬
border bottom) to line width25 point
end if
end repeat
This example adds a border around all of the pages in the current section.
set art style of (get border section 1 of selection which border border top) ¬
to art basic black dots
set art style of (get border section 1 of selection which border border bottom) ¬
to art basic black dots
set art style of (get border section 1 of selection which border border left) ¬
to art basic black dots
set art style of (get border section 1 of selection which border border right) ¬
to art basic black dots
set art width of (get border section 1 of selection) to 6
Command: get footer
Represents a single footer. The get footer command returns a
header footer
object.
Syntax
get footer section Required. An expression that returns a section object.
index enumeration Required. Specifies the footer to retrieve. Can be one of the following:
header footer primary, header footer first page, or header footer even pages.
You can also return a single header footer object by using the header footer object property with a
selection object.
Example
The following example changes the text of both the primary header and the primary footer in the
first section of the active document.
set content of text object of (get header section 1 of active document index ¬
header footer primary) to "Header text"
set content of text object of (get footer section 1 of active document index ¬
header footer primary) to "Footer text"