On 1/27/01 11:08 PM, I wrote:
> OK. Here it is. You can drag contacts and/or groups (any combination) from
> custom view(s) and/or the Address Book to any or all of the recipient fields
> (To, Cc, Bcc) of a new message window. Then run the script to remove
> duplicates. It will show all contacts as contact icons, except for contacts
> without display names (i.e. only email addresses): they will be included but
> will display the email address with an @ icon. If you have dragged a group,
> it will show all non-duplicate individual group members now, not the group
> name. If the group members are contacts, it will show them as contact icons
> (except nameless ones, as above). If you have any group members who are not
> real contacts in the Address Book, they will be included, if not duplicates,
> with the @ icon. Please let me know if you hit any problem.
Here's a possible problem or two:
1) If you purposely have "quasi-duplicate" contacts: same display name with
different email address, the script will consistently put one of those in
the message, never the other. Even if it's NOT duplicated, but just comes
once, it will be switched to the other version. This is not a situation
that many people will have, but some will.
2) If you have purposely put a contact into a group as a group member with a
NON-default address (so it displays with the @ sign, not a contact icon), it
will be replaced by the contact icon with the default address.
I could fix either or both of these by one of two ways:
A) Forget about contact icons. If I replace them by the @ icon version
instead of the little-man contact icon for ALL contacts, those problems will
never arise. Or if I replace it just for group entries, problem 2 above will
never arise.
B) I could check every contact and group entry to see if the email address
used is the default. If it is, then you get the contact icon. If it isn't,
then you get the right address with the @ sign. The problem with this method
is that it will be slower, because it will involve an extra AppleEvent for
each contact. You'll have seen that the present script is super-fast. With
only 10 or 20 contacts you probably wouldn't notice the difference, but with
100 I'm pretty sure you would. I can check tomorrow.
So the potential problem exists only because i wanted to use the contact
icon. One solution (A) would ditch that in favor of 100% accuracy either in
all cases or just for groups, and the other method (B) would get both looks
(the contact icon in most cases) and the 100% accuracy (@ icons for the few
others) at the expense of speed. Which of the four methods is preferable
(including the present one)?
--
Paul Berkowitz
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>