Microsoft Word Suite
259
Command: get border
Returns the specified border object.
Syntax
get border font/frame/selection object Required. The object to get the border from.
which border enumeration Required. The border to be retrieved. Can be one of the following:
border top, border left, border bottom, border right, border horizontal, border vertical,
border diagonal down, or border diagonal up.
Example
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 cross reference items
Returns a list of items that can be cross-referenced based on the specified cross-reference type. The
array corresponds to the items listed in the For which box in the Cross-reference dialog box (Insert
menu).
Note An item returned by this method can be used as the reference item argument for the
insert
cross reference
command.
Syntax
get cross reference items document Required. An expression that returns a document object.
reference type enumeration Required. The type of item you want to insert a crossreference to.
Can be one of the following: reference type bookmark, reference type footnote, reference
type endnote, reference type heading, or reference type numbered item.
Example
This example displays the name of the first bookmark in the active document that can be cross-
referenced.
if (get count of bookmarks of active document) 1 then
set myBookmarks to get cross reference items active document ¬
reference type reference type bookmark
display dialog item 1 of myBookmarks
end if