Thanks for the suggestion, Allen.  The script makes sense.  I tried
it, but it is a bit limiting for what I need to do.  Your suggestions
for improvements seem to be what I need.  My knowledge of Applescript
is fairly limited, but I will give it a try.

Thanks again!

Bill

On or near 11/2/03 12:52 PM, William O'Brien at
[EMAIL PROTECTED] observed:

Hi.

 Would someone be willing to help me out?  My problem seems simple,
 but I can't seem to find an answer anywhere...

 I have contacts with multiple email addresses (home, work, etc.).
 When I address an email to one (or more) of these contacts, I want
 Entourage to send an email to each address that is listed for that
 contact.  At the moment, an email is only sent to the default email
 address for the contact.

I apologise if this question is answered elsewhere.

As with most everything like this, there is a script for it. I don't
think this script has been posted for download anywhere. I forget
who wrote it. So, paste it into your Script Editor, save it in
Entourage Script Menu Items (folder), and run it from the script
menu.

--Set up outgoing message to every address of a contact
tell application "Microsoft Entourage"
    activate
    display dialog �
        "Enter the name or one complete email address of the contact
you wish to address." default answer ""
    set theInput to text returned of result
    try
        if theInput contains "@" then -- Assume we have an e-address
            set theContact to find theInput
            set theContact to display name of item 1 of theContact
            set theList to every email address of contact theContact
        else -- Assume it's a name
            set theList to every email address of contact theInput
        end if
    on error theErr
        display dialog theErr
        return
    end try
    if theList = {} then return
    set AppleScript's text item delimiters to ", "
    set theList to theList as text
    set AppleScript's text item delimiters to ""
    make new draft window with properties {to recipients:theList}
end tell

++ End of script ++

This could be possibly improved by allowing you to have a draft
window open already, with a recipient selected in the normal way,
and then using that recipient's contact record to add the additional
addresses; or allowing you to start with a selected contact. But
this does the job, if you remember to run it.
--
Microsoft MVP for Entourage/OE/Word (MVPs are volunteers)
Allen Watson <[EMAIL PROTECTED]> Entourage FAQ site:
<http://www.entourage.mvps.org/>
AppleScripts for Outlook Express and Entourage:
 <http://members.thinkaccess.net/[EMAIL PROTECTED]/Scripts/>
Entourage Help Pages: <http://www.entourage.mvps.org/>

-- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>



Reply via email to