Microsoft Word Suite
304
[SQL statement Unicode text] Optional. Defines query options for retrieving data.
[SQL statement1 Unicode text] Optional. If the query string is longer than 255 characters, SQL
statement specifies the first portion of the string, and SQL statement1 specifies the second
portion.
Example
This example creates a new main document and attaches the document "Data.doc" as the data
source.
set myDoc to make new document
set main document type of data merge of myDoc to document type form letters
open data source data merge of myDoc name "data.doc"
Command: open document from workmenu
Opens the document associated with the specified work menu item and returns it as a document
object.
Syntax
open document from workmenu work menu item Required. An expression that returns a work
menu item object.
Example
This example opens each document on the Work menu.
repeat with i in (get work menu items)
open document from workmenu i
end repeat
Command: open header source
Attaches a data merge header source to the specified document.
Note When a header source is attached, the first record in the header source is used in place of the header
record in the data source.
Syntax
open header source data merge Required. An expression that returns a data merge object.
name Unicode text Required. The header source file name.
[format enumeration] Optional. The file converter used to open the document. Can be one of the
following: open format auto, open format document, open format mac readable, open format
rtf, open format template, open format text, open format unicode text, or open format web
pages. The default value is open format auto.
To specify an external file format, use the open format property with a file converter object to
determine the value to use with this argument.
[confirm conversions Boolean] Optional. True to display the Convert File dialog box if the file
isnt in Word format.