Microsoft Word Suite
246
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
show
command.
Syntax
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.
Example
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
repeated successfully.
Note Using this command is equivalent to using the Repeat command on the Edit menu.
Syntax
do Word repeat
[times integer] Optional. The number of times you want to repeat the last command.
Example
This example inserts the text "Hello" followed by two paragraphs (the second typing action is
repeated once).
type text selection text "Hello"
type paragraph selection
do Word repeat
Command: edit data source
Opens or switches to the mail merge data source.
Syntax
edit data source data merge Required. An expression that returns a data merge object.
Remarks
If the data source is a Word document, this command opens the data source (or activates the data
source if it's already open).