Microsoft Word Suite
306
Example
This example opens each subdocument in the master document "Master.doc".
repeat with s in (get subdocuments of document "Master.doc")
open subdocument s
end repeat
Command: open version
Opens the specified document and adds it to the documents list. Returns a document object.
Syntax
open version document version Required. An expression that returns a document version object.
Example
This example opens the most recent version of Report.doc.
set myDoc to document "Report.doc"
open version last document version of myDoc
Command: organizer copy
Copies the specified AutoText entry, toolbar, style, or macro project item from the source document
or template to the destination document or template.
Syntax
organizer copy
source Unicode text Required. The document or template file name that contains the item you
want to copy.
destination Unicode text Required. The document or template file name to which you want to
copy an item.
name Unicode text Required. The name of the AutoText entry, toolbar, style, or macro you want
to copy.
organizer object type enumeration Required. The kind of item you want to copy. Can be one of
the following: organizer object auto text, organizer object command bars, organizer object
project items, or organizer object styles.
Example
This example copies all the AutoText entries in the template attached to the active document to the
Normal template.
repeat with aEntry in (get auto text entries of attached template of ¬
active
document)
organizer copy source (full name of attached template of ¬
active document) destination (full name of normal template) ¬
name (name of aEntry) organizer object type organizer object ¬
auto
text
end repeat