I should advise that recent version of entourage may throw up a warning
dialog if you try to send a message by script. This can be disabled in the
security preferences.
--
Barry Wainwright
Microsoft MVP (see
http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
<
http://www.entourage.mvps.org/>
From: Barry Wainwright <
[email protected]>
Newsgroups: microsoft.public.mac.office.entourage
Date: Wed, 08 Dec 2004 20:38:02 +0000
Subject: Re: Applescript to create a mail message
OK, compose your message, put all the recipients in the 'to' line, then run
this script:
<
http://tinyurl.com/3pjuy>
If that URL doesn't work properly, here is the script in full:
-- Send Separate Messages v1.0.0
-- © Barry Wainwright 8th December 2004
-- An Applescript for Microsoft Entourage
-- Will take the frontmost window, and create a new
-- duplicate message for each recipient of that window
tell application "Microsoft Entourage"
set aMess to front window
if class of aMess is draft window then
tell aMess to set {theSubject, theContent, theRecipients} to
{subject, content, to recipients}
set {oldTIDs, AppleScript's text item delimiters} to {AppleScript's
text item delimiters, ","}
set theRecipients to text items of theRecipients
repeat with aRecipient in theRecipients
make new outgoing message at end of folder id 2 with properties
{subject:theSubject, content:theContent, recipient:aRecipient}
end repeat
delete aMess
else
display dialog "No Draft Message Open!" buttons {"Stop"} default
button 1 with icon stop giving up after 5
end if
end tell
Save the script as a compiled script & put it in the ŒEntourage Script Menu
Items¹ folder in your ŒMicrosoft User Data¹ folder. The script can be
manually run from the menu.