• 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
Delete People from Group
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delete People from Group


  • Subject: Delete People from Group
  • From: Marc <email@hidden>
  • Date: Wed, 14 Sep 2011 19:12:34 -0700

I'm trying to delete each person in a particular Address Book group but I'm not having any success.  Here's my code:

tell application "Address Book"
activate
set theGroup to group "Recent Customers"
set peopleToDelete to people of theGroup
repeat with thisPerson in peopleToDelete
delete thisPerson
end repeat
end tell


I'd appreciate any insights as to what I'm doing wrong.

Thanks,
Marc

OS 10.6.7

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Delete People from Group [Solved]
      • From: Marc <email@hidden>
  • Prev by Date: Re: Lion versus regex
  • Next by Date: Re: Delete People from Group [Solved]
  • Previous by thread: Fwd: Lion versus regex
  • Next by thread: Re: Delete People from Group [Solved]
  • Index(es):
    • Date
    • Thread