RE: stuck using Outlook 2001
RE: stuck using Outlook 2001
- Subject: RE: stuck using Outlook 2001
- From: "Mossey, Nan" <email@hidden>
- Date: Tue, 16 Dec 2003 13:03:33 -0500
I use a script that sets a bunch of variables to information found in my
database, and then drops the info, along with additional text, into the body
of an Outlook e-mail and sends it to a mailing list. Here's the Outlook
part, after the variables have all been set. Hope it helps.
tell application "Microsoft Outlook"
CreateMail Subject "Section: " & PubName Recipients "BroadcastList"
Body "Project Management Form" & return & return & ,
"Project Name: " & PubName & return & ,
"Format: " & Format & return & ,
"Ad structure: " & Ads & return & ,
"Est. Page count: " & PageCnt & return & return & ,
"Production Coordinator: " & Coord & return & ,
"Sales Manager: " & sales & return & ,
"Special Sections Coordinator: Jim Spain" & return & return
& ,
"Dates" & return & ,
"Insert: " & insert & return & return & ,
"Space and copy Deadline: " & deadline & return & ,
"Layouts: " & layout & return & ,
"Proofs out to client: " & proofout & return & ,
"Proofs back to Ad Art: " & proofback & return & ,
"Release Ads to scoop: " & release & return & ,
"Film/PDF: " & film & return & ,
"Print: " & printon & return & return & ,
"Printed by: " & Printer & return & ,
"Overrun: " & overrun & return & ,
"Distribution: " & distribution & return & return & ,
"Lineage to Rep: " & lineage & return & ,
"Ancillary to Rep: " & ancillary & return & ,
"Other/no lineage: " & other without Display
end tell
>
----------
>
From: David DuBois
>
Reply To: David DuBois
>
Sent: Tuesday, December 16, 2003 12:25 PM
>
To: email@hidden
>
Subject: stuck using Outlook 2001
>
>
I am trying to write a simple script to automate some email. Although
>
Outlook 2001 has very limited scripting support, it should do what I would
>
like it to do. What I have (and doesn't work) is:
>
>
tell application "Microsoft Outlook"
>
set mySubject to "Test Message" as string
>
set myBody to "Some text goes here: " as string
>
CreateMail {|recipients|:"email@hidden",
>
|subject|:mySubject, |body|:myBody}
>
end tell
>
>
It will create a new message, but doesn't put in the recipents or subject
>
or body of the message.
>
>
Can anyone show me what I did wrong? Also, I would like to add a couple of
>
hard returns in my body type after the "Some text goes here:"
>
>
Thanks,
>
David
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
>
>
========================================================
This e-mail message is intended only for the personal
use of the recipient(s) named above. If you are not
an intended recipient, you may not review, copy or
distribute this message.
If you have received this communication in error,
please notify the Albany Times Union Help Desk
(email@hidden) immediately by e-mail and
delete the original message.
========================================================
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.