Microsoft Word Suite
Note Any actions initiated or settings specified while a dialog box is displayed using this
command arent carried out. To display a dialog box and carry out actions or apply settings, use the
display Word dialog dialog Required. An expression that returns a dialog object.
[time out integer] Optional. The amount of time that Word will wait before closing the dialog
box automatically. One unit is approximately 0.001 second. Concurrent system activity may
increase the effective time value. If this argument is omitted, the dialog box is closed when the
user closes it.
This example displays the About dialog box.
set aDialog to get dialog dialog help about
display Word dialog aDialog
This example displays the Zoom dialog box for approximately nine seconds.
display Word dialog (get dialog dialog view zoom) time out 9000
Command: do Word repeat
Repeats the most recent editing action one or more times. Returns true if the commands were
Note Using this command is equivalent to using the Repeat command on the Edit menu.
do Word repeat
[times integer] Optional. The number of times you want to repeat the last command.
This example inserts the text "Hello" followed by two paragraphs (the second typing action is
type text selection text "Hello"
type paragraph selection
do Word repeat
Command: edit data source
Opens or switches to the mail merge data source.
edit data source data merge Required. An expression that returns a data merge object.
If the data source is a Word document, this command opens the data source (or activates the data
source if it's already open).