Microsoft Word Suite
This example updates the next field in the selection.
update field (get next field selection)
display dialog "There is no next field"
Command: get previous field
Selects the previous field. If a field is found, this command returns a field object; if not, it returns
get previous field selection object Required. An expression that returns a selection object.
This example updates the previous field (the field immediately preceding the selection).
update field (get previous field selection)
display dialog "There is no previous field"
Command: get private profile string
Returns a string in a settings file.
get private profile string system object Required. An expression that returns a system object.
file name Unicode text Required. The file name for the settings file. If no path is specified, the
Users/<user name>/Library/Preferences/Microsoft folder is assumed.
section Unicode text Required. The name of the section in the settings file that contains key.
key Unicode text Required. The key whose setting you want to retrieve.
You can write scripts that use a settings file to store and retrieve settings. For example, you can store
the name of the active document when you quit Word so that it can be reopened automatically the
next time you start Word.