Re: Attachment with entourage
Re: Attachment with entourage
- Subject: Re: Attachment with entourage
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 21 Aug 2001 21:09:00 -0700
On 8/21/01 2:55 AM, "Alain Defrasne" <email@hidden> wrote:
>
I'm looking for an example of script to send a mail with entourage with
>
attached document.
tell application "Microsoft Entourage"
set newMsg to make new outgoing message at drafts folder with properties
{subject:"foo", content:"bar", recipient:{address:{"John Doe
<email@hidden>"}}, attachment:{file:alias "Macintosh HD:Documents:Special
Letter.doc"}}
send newMsg
end tell
If there is more than one attachment, it must be like this:
tell application "Microsoft Entourage"
set newMsg to make new outgoing message at drafts folder with properties
{subject:"foo", content:"bar", recipient:{address:{"John Doe
<email@hidden>"}}, attachment:{{file:alias "Macintosh HD:Documents:Special
Letter.doc"}, {file:alias "Macintosh HD:Documents:ABC Release Notes"}}}
send newMsg
end tell
--
Paul Berkowitz