Microsoft Word Suite
[default orientation enumeration] Optional. The orientation for the envelope. Can be one of the
following: left portrait, center portrait, right portrait, left landscape, center landscape, right
landscape, left clockwise, center clockwise, or right clockwise.
[size from page setup Boolean] Optional. True if the envelopes address areas are sized
according to settings in the Envelopes dialog box in the Page Setup dialog box (Tools menu).
False if they are sized according to custom settings. The default value is true.
[show page setup dialog Boolean] Optional. True if the Page Setup dialog box is displayed to
allow adjustment of settings. Size from page setup must be set to true for the box to be
displayed. The default value is false.
[create new document Boolean] Optional. True if the envelope is not inserted into the active
document but created separately. The default value is true.
This example adds a Size 10 envelope to the active document by using the addresses stored in the
set tAddr to "Tony Wang" & return & "123 Skye St." & return & ¬
"OurTown, WA 98107"
set fAddr to "Amy Rusko" & return & "456 Erde Lane" & return & ¬
"OurTown, WA 98107"
insert envelope data envelope object of active document address tAddr ¬
return address fAddr envelope size "Size 10"
Command: insert file
Inserts all or part of the specified file.
at text range Required. An expression that returns a text range object.
file name Unicode text Required. The path and file name of the file to be inserted. If you dont
specify a path, Word assumes the file is in the current folder.
[file range Unicode text] Optional. If the specified file is a Word document, this parameter
refers to a bookmark. If the file is another type (for example, a Microsoft Excel worksheet), this
parameter refers to a named range or a cell range (for example, R1C1:R3C4).
[confirm conversions Boolean] Optional. True to have Word prompt you to confirm conversion
when inserting files in formats other than the Word Document format.
[link Boolean] Optional. True to insert the file by using an INCLUDETEXT field.
This example uses an INCLUDETEXT field to insert the TEST.DOC file at the insertion point.
collapse range text object of selection direction collapse end
insert file at text object of selection file name ¬
"Macintosh HD:Users:Shared:TEST.DOC" with link