Microsoft Word Suite
133
Class: letter content
Plural
letter contents
Represents the elements of a letter created by the Letter Wizard.
To return a letter content object, use the letter content property of the document or the
create letter
content
command. The following example retrieves and displays the letter recipient's name from the
active document.
set myLetterContent to letter content of active document
display dialog recipient name of myLetterContent as string
The following example uses the create letter content command to create a new letter content object,
which is then used with the run letter wizard command.
set LC to create letter content active document ¬
date format ¬
"July 31, 1996" include header footer false ¬
page design ¬
"" letter style full block ¬
letterhead
true
¬
letterhead location letter top ¬
letterhead size 108.0 ¬
recipient name ¬
"Tony Madigan" recipient address "432 SE Main St. " & return & ¬
"Bellevue, WA 98004" salutation ¬
"Dear Tony" salutation type salutation informal ¬
recipient
reference
¬
"" mailing instructions ¬
"" attention line ¬
"" subject ¬
"End of Year Report" cc list ¬
"" return address ¬
"" sender name ¬
"" closing ¬
"Sincerely yours," sender company ¬
"" sender job title ¬
"" sender initials ¬
"" number of enclosures 0
run letter wizard active document letter content LC with wizard mode