Microsoft Word Suite
305
[read only Boolean] Optional. True to open the header source on a readonly basis.
[add to recent files Boolean] Optional. True to add the file name to the list of recently used files
at the bottom of the File menu.
[password document Unicode text] Optional. The password used to open the header source.
[password template Unicode text] Optional. The password used to open the template.
[Revert Boolean] Optional. Controls what happens if name is the file name of an open
document. True to discard any unsaved changes to the open document and reopen the file;
false to activate the open document.
[write password Unicode text] Optional. The password used to save changes to the document.
[write password template Unicode text] Optional. The password used to save changes to the
template.
Example
This example sets the active document as a main document for form letters, and then it attaches the
header source named "Header.doc" and the data document named "Names.doc."
set main document type of data merge of active document to ¬
document type form letters
open header source data merge of active document ¬
name "Macintosh HD:Users:Shared:Header.doc" ¬
without add to recent files and Revert
open data source data merge of active document ¬
name "Macintosh HD:Users:Shared:Names.doc"
Command: open recent file
Opens the recent file and returns a document object.
Syntax
open recent file recent file Required. An expression that returns a recent file object.
Example
This example opens each document in the recent files list.
repeat with r in (get recent files)
open recent file r
end repeat
Command: open subdocument
Opens the specified subdocument and returns a document object.
Syntax
open subdocument subdocument Required. An expression that returns a subdocument object.