Microsoft Word Suite
244
This example cuts the contents of the selection and pastes them into a new document.
if selection type of selection is selection normal then
cut object selection
make new document
paste object selection
end if
Command: data form
Displays the Data Form dialog box, in which you can add, delete, or modify data records.
Note You can use this command with a data merge main document, a data merge data source, or
any document that contains data delimited by table cells or separator characters.
Syntax
data form document Required. An expression that returns a document object.
Example
This example displays the Data Form dialog box if the active document is a mail merge document.
if state of data merge of active document is not normal document then
data form active document
end if
This example creates a table in a new document and then displays the Data Form dialog box.
set aDoc to make new document
make new table at aDoc with properties {number of rows:2, number of columns:2}
set content of text object of cell 1 of row 1 of table 1 of aDoc to "Name"
set content of text object of cell 2 of row 1 of table 1 of aDoc to "Age"
data form aDoc
Command: disable
Removes the specified key combination if it's currently assigned to a command. After you use this
command, the key combination has no effect. Using this command is equivalent to clicking the
Remove button in the Customize Keyboard dialog box (Tools menu).
Note To reset a builtin command to its default key assignment, use the clear command with a key
binding object. You dont need to remove or rebind a key binding object before adding it
elsewhere.
Syntax
disable key binding Required. An expression that returns a key binding object.