Re: Entourage Bcc and cc
Re: Entourage Bcc and cc
- Subject: Re: Entourage Bcc and cc
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 25 May 2005 08:40:23 -0700
- Thread-topic: Entourage Bcc and cc
Title: Re: Entourage Bcc and cc
On 5/25/05 6:43 AM, "Mario Salerno" <email@hidden> wrote:
I am fairly new to Applescript hence I already have a queston.
How can I tell Applescript to fill a Bcc or cc field when creating a new message in Entourage 2004. I can do it for the to: field (reciepient) but not for the rest.
Do you want to do this for a new message window which opens on your screen, ready for you to write the rest of the message normally? The object you need to script then is a 'draft window' (not an 'outgoing message'), whose 'CC recipients' and 'BCC recipients' properties are easy to script because they're just strings (text). You'll have to give more details if you want to do anything unusual (specific account, for example) but here's an example. You can include just the email address, or the display name as well, this way, putting the email address into < > brackets:
tell application "Microsoft Entourage"
make new draft window with properties {CC recipients:"Joe Blow <email@hidden>"}
end tell
If the display name has any punctuation (like a middle initial with a period ".") you need to put it into quotes:
make new draft window with properties {CC recipients:"\"Joe T. Blow\" <email@hidden>"}
which you can do for all cases if you don't know if you'll need it.
If there are more than one in the same field (to, cc, or bcc) separate them by commas (plus an option al space), all in the same string (no end quote until the end):
make new draft window with properties {CC recipients:"\"Joe T. Blow\" <email@hidden>, Gordon Wiesbacker <email@hidden>, email@hidden"}
Making BCC recipients is done exactly the same way.
If that's all you do you'll find the "recipients window" open and waiting for you to insert a To recipient. (To get it to close, you'd have to also script a bit of the content, which would lose HTML that you'd have to rest if you want it as you seem to do, plus script the signature, which is a bit tricky.)
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden