Title: Re: And how to search in a mailing group??
On or near 5/4/02 3:07 AM, disciple1 at [EMAIL PROTECTED] observed:

> Is it possible at all to search through a mailing group?  I always have to
> scroll through every single name and if I select one and hit a letter,
> thinking it will make me browse to that letter in the list, I just doesen't
> work.  Can this be improved?

I guess the question is: Why are you searching through a group at all?

What are you trying to accomplish? If you are trying to determine whether or not a person is already in a group, to avoid duplicates, you can do that with a script more easily. For instance, assume "anEmail" contains the address of the person being added, and "theGroup" contains the name of the group:

 tell application "Microsoft Entourage"
   display dialog "E-mail address to add to group?" default answer ""
   set anEmail to text returned of result
    display dialog "Add to what group (name)?" default answer ""
   set theGroup to text returned of result
        if (count of group entries of group theGroup) � 0 then
            set theMembers to group entries of group theGroup
        else
            set theMembers to {}
        end if
      set theList to {}
      repeat with aMember in theMembers
          set theList to theList & address of content of aMember
      end repeat

            if anEmail is not in theList then
                make new group entry of group theGroup with properties {content:anEmail}
                display dialog anEmail & " has been added to " & theGroup
            else
                display dialog anEmail & " is already a member."
            end if
 end tell

I've kept that simple; it could be enhanced to display a list of existing groups, create a new one if desired, and even to glean the addresses from messages...
--
My web page: <http://home.earthlink.net/~allenwatson/>
My scripts page: <http:homepage.mac.com/allenwatson>
Microsoft MVP for Mac Entourage/Word--<[EMAIL PROTECTED]>

Reply via email to