Microsoft Word Suite
265
Example
This example displays all the key combinations assigned to the FileOpen command in the template
attached to the active document.
set customization context to attached template of active document
set myKey to (get keys bound to key category key category command ¬
command
"FileClose")
repeat with kbs in myKey
display dialog (get binding key string of kbs)
end repeat
This example removes all key assignments from Macro1 in the Normal template.
set customization context to normal template
repeat with aKey in get keys bound to key category key category macro ¬
command
"Macro1"
disable aKey
end repeat
Command: get list gallery
Returns a list gallery object that represents the three list template galleries (Bulleted, Numbered, and
Outline Numbered). Each gallery corresponds to a tab in the Bullets and Numbering dialog box.
Syntax
get list gallery enumeration Required. The list gallery to return. Can be one of the following:
bullet gallery, number gallery, or outline number gallery.
Example
This example sets the variable
mylsttmp
to the second list template on the Outline Numbered tab
in the Bullets and Numbering dialog box. The example then applies that template to the first list in
the active document.
set mylsttmp to list template 2 of (get list gallery outline number gallery)
apply list template list 1 of active document list template mylsttmp
Command: get next field
Selects the next field. If a field is found, this command returns a field object; if not, it returns
undefined.
Syntax
get next field selection object Required. An expression that returns a selection object.