I've been trying to enhance my script to find duplicate contacts to create a
version that will locate all contacts, assign them a special category, and
then finish with that set of contacts "found" in the Address Book. I have
all but the last step working.
Does anyone (Paul, Dan) know a way to script finding contacts by category? I
want to do the equivalent of:
Set dupes to every contact whose category is "Possible Duplicate"
With flagged contacts, the following works to select all flagged contacts:
open address book 1
set thecontacts to every contact whose flagged is true
set selection to thecontacts
The equivalent list ending 'whose category is "Possible Duplicate"' does
not work. Of course, "category" is a list. So I tried 'whose category
contains "Possible Duplicate"' or 'where "Possible Duplicate" is in its
category". Neither works.
I've even tried determining the id of the category, e.g. "Possible
Duplicate" is the name of "category id 41", and trying to match on category
id. That does not seem to work either.
Is there a way to script what I want?
Ending with the desired category <selected> would be okay. Ending with a
kind of custom view showing <only that category> would be best.
Any help appreciated.
--
Peace,
Allen Watson <[EMAIL PROTECTED]> XNS name: =Allen Watson
A Mac family since 1984
My web page: <http://home.earthlink.net/~allenwatson/>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>