Microsoft Word Suite
266
Example
This example updates the next field in the selection.
try
update field (get next field selection)
on error
display dialog "There is no next field"
end try
Command: get previous field
Selects the previous field. If a field is found, this command returns a field object; if not, it returns
undefined.
Syntax
get previous field selection object Required. An expression that returns a selection object.
Example
This example updates the previous field (the field immediately preceding the selection).
try
update field (get previous field selection)
on error
display dialog "There is no previous field"
end try
Command: get private profile string
Returns a string in a settings file.
Syntax
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.
Remarks
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.