Microsoft Word Suite
241
overwrite Boolean Required. True to overwrite any existing file of the same name in the same
folder. False if any existing file of the same name is preserved and the file name argument
specifies a new file name. The default value is false.
Example
This example creates a new document based on the new hyperlink in the first document and then
loads the new document into Word for editing. The document is named "Link.doc" and it
overwrites any file of the same name in the "Macintosh HD:Users:Shared" folder.
set objHyper to make new hyperlink object at active document with properties ¬
{text object:text object of selection, ¬
hyperlink address:"Macintosh HD:Users:Shared:Link.doc"}
create new document for hyperlink objHyper file name ¬
"Macintosh HD:Users:Shared:Link.doc" with edit now and overwrite
Command: create new mailing label document
Creates a new label document using either the default label options or ones that you specify.
Returns a document object.
Syntax
create new mailing label document mailing label Required. An expression that returns a mailing
label object.
[name Unicode text] Optional. The mailing label name.
[address Unicode text] Optional. The text for the mailing label.
[auto text Unicode text] Optional. The name of the AutoText entry that includes the mailing
label text.
[extract address Boolean] Optional. True to use the address text marked by the userdefined
bookmark named EnvelopeAddress instead of using the address argument.
[laser tray enumeration] Optional. The laser printer tray. Can be one of the following: printer
automatic sheet feed, printer default bin, printer envelope feed, printer form source, printer
large capacity bin, printer large format bin, printer lower bin, printer manual envelope feed,
printer manual feed, printer middle bin, printer only bin, printer paper cassette, printer
small format bin, printer tractor feed, or printer upper bin.
[single label Boolean] Optional. True if the text is placed within a single label on a sheet that
contains multiple labels. This argument is used in conjunction with row and column. The
default value is false.
[row integer] Optional. Specifies the row in which to place the text when single label is set to
true.
[column integer] Optional. Specifies the column in which to place the text when single label is
set to true.