• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Address Book: Delete Person
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Address Book: Delete Person
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Inheritance
  • Next by Date: Re: Address Book: Delete Person
  • Previous by thread: Re: Working With Records
  • Next by thread: Re: Address Book: Delete Person
  • Index(es):
    • Date
    • Thread