Title: Re: Contact -- group maintenance issues
On 10/5/05 8:08 PM, "henryn" <[EMAIL PROTECTED]> wrote:

Folks:

I've got an email in my "Sent Items" folder with 77 recipients.  Well, I need to send all those folks another message.  

I can select the message and just hit "Message-->Resend" and do it. Quick and dirty... and not maintainable.

But is there a way to retrieve all the addresses and make a group out of them, for the purposes of doing a bit of maintenance over time?

I can select all the addresses in the sent message, but "copy" doesn't seem to function, no surprise, it's grey in the Edit menu.  Why would it be disabled?  There is perfectly good data highlighted.

D'oh!  I figured out how to do it.  "View Source" and scarf up the addresses, which are all visible, separated by commas.   Pasting into a new, empty group works perfectly.

So  how would a civilian (someone intimidated by "View Source") do this?

View Source.

If you open the sent message into its own window, you'll see a lot of the recipients in the To header, and can (carefully) select as many as you see, and copy. But you won't see as many as 77.

Instead of View/Source, you can View/Internet Headers (with message in its own window). Pull down the divider between headers and message until you see all 77, select and copy.  But I can't see how this is any different from doing it in Source, and Source is available also from Preview Pane messages. Either way, paste into a group window.

A related question:  

When I set a search my "Sent Items" on a particular keyword,  I find I have got 267 messages.   Hmmm, I'd like to extract the addresses of all the recipients and add them to a group so I can send them some messages. Yes, many of the messages go to the same folks, so I'd need a way of processing for uniqueness.

I could most all that by hand, if necessary, if only I could get a hold of the contents of the "To" column of my search results.  Or all columns, even, I could take care of isolating the recipients in an editor.  How to get them?  Again, "copy" is disabled.

Unfortunately, Add to Address Book only works for senders, not recipients. You'd need to do it via a script. I don't know if anyone has made such a script yet. Here's a simple version that will work on selected Sent messages:



tell application "Microsoft Entourage"
    display dialog "Enter a name for the group to be made from the To recipients of selected messages:" default answer "" with icon 1
    set groupName to text returned of result
   display dialog "Do you want the group set to show individual addresses or NOT show addresses in messages to the group?" buttons {"Cancel", "Show addresses", "Don't show"} default button 3 with icon 1
    if button returned of result = "Don't show" then
       set showOnlyName to true
   else
       set showOnlyName to false
   end if
   set theGroup to make new group with properties {name:groupName, show only name in messages:showOnlyName}
    set selectedMessages to (current messages)
    set entryAddresses to {}
    repeat with i from 1 to (count selectedMessages)
        set theMsg to item i of my selectedMessages
       repeat with toRecip in (every recipient of theMsg whose recipient type is (to recipient))
            set {dName, eAddress} to {display name, address} of (address of toRecip)
            if dName ≠ "" then
               set nameAddress to "\"" & dName & "\" <" & eAddress & ">"
            else
               set nameAddress to eAddress
           end if
           if {nameAddress} is not in entryAddresses then
               make new group entry at theGroup with properties {content:nameAddress}
                set end of entryAddresses to nameAddress
           end if
       end repeat
   end repeat
   beep 2
    open theGroup
end tell




--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Microsoft Office you are using - **2004**, X  or 2001. It's often impossible to answer your questions otherwise.

Reply via email to