Microsoft Word Suite
223
Command: break link
Breaks the link between the source file and the specified picture.
Note After you use this command, the link result wont be automatically updated if the source file
is changed.
Syntax
break link link format Required. An expression that returns a link format object.
Example
This example updates and then breaks the links to any shapes that are linked OLE objects in the
active document (Windows only).
repeat with s in (get shapes of active document)
if shape type of s is shape type linked OLE object then
update link format of s
break link link format of s
end if
end repeat
Command: build key code
Returns a unique number for the specified key combination.
Syntax
build key code
key1 enumeration Required. A key you specify by using one of the specified constants. See the
Microsoft Word AppleScript Dictionary for the list of constants.
[key2key4 enumeration] Optional. A key you specify by using one of the specified constants.
See the Microsoft Word AppleScript Dictionary for the list of constants.
Example
This example assigns the CMD + F1 key combination to the Organizer command.
set customization context to normal template
make new key binding with properties ¬
{key code:(build key code key1 command_key key2 f1_key), ¬
key category:key category command, command:"Organizer"}
This example removes the CMD+F1 key assignment from the Normal template.
set customization context to normal template
clear (find key key code (build key code key1 command_key key2 f1_key))
This example displays the command assigned to the F1 key.
set customization context to normal template
display dialog (get command of (find key key code (build key code ¬
key1
f1_key)))