Address Book: Delete Person
Address Book: Delete Person
- Subject: Address Book: Delete Person
- From: JimMain <email@hidden>
- Date: Thu, 15 Jan 2004 10:00:51 -0800
I'm trying to delete certain people from the address book. I've deleted
groups successfully, but haven't had any luck with people.
This runs without error, but doesn't delete any entries:
tell application "Address Book"
activate
delete (people whose (label of AIM handles) contains "%X")
end tell
I've even tried:
tell application "Address Book"
activate
repeat with p in people
set l to (get label of AIM Handle of p) as string
if l contains "%X" then
tell p to make new phone at end of phones with properties
{label:"delete", value:"delete"}
delete p
end if
end repeat
end tell
It's adding the 'delete' phone so I'm getting true 'if' results, but
still not deleting the entries.
Any suggestions?
Jim Main
-------------------------------------------
619-948-5293
email@hidden
-------------------------------------------
When I told the people of Northern Ireland that I was an atheist, a
woman in
the audience stood up and said, "Yes, but is it the God of the
Catholics or
the God of the Protestants in whom you don't believe?" -- Quentin Crisp
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.