Microsoft Word Suite
298
[table id Unicode text] Optional. A oneletter identifier for the table of figures item (for example,
i for an illustration).
[level integer] Optional. A level for the entry in the table of contents or table of figures.
Example
This example inserts a table of figures entry that references the selected text. The text typed in the
input box appears in the table of figures. A table of figures that uses fields is then added at the
beginning of the active document.
set entryText to text returned of (display dialog "Type entry text" ¬
default answer "")
mark entry for table of figures active document range text object ¬
of selection entry entryText
set myRange to create range active document start 0 end 0
make new table of figures at active document with properties ¬
{text object:myRange, use fields:true, use heading styles:false}
Command: mark for index
Inserts an XE (Index Entry) field after the specified range. The XE field is returned as a field object.
Syntax
mark for index document Required. An expression that returns a document object.
range text range Required text range object. The location of the entry. The XE field is inserted
after range.
entry Unicode text Required. The text that appears in the index. To indicate a subentry, include
the main entry text and the subentry text, separated by a colon (:) (for example, Introduction:
The Product).
[cross reference Unicode text] Optional. A crossreference that will appear in the index (for
example, See Apples).
[bookmark name Unicode text] Optional. The name of the bookmark that marks the range of
pages you want to appear in the index. If this argument is omitted, the number of the page
containing the XE field appears in the index.
Example
This example inserts an index entry after the selection in the active document. The subentry text is
the text from the selection.
if selection type of selection is selection normal then
mark for index active document range text object of selection ¬
entry "Introduction: " & content of text object of selection
end if