• 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
Why doesn't this work in Address Book?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why doesn't this work in Address Book?


  • Subject: Why doesn't this work in Address Book?
  • From: Robert Nicholson <email@hidden>
  • Date: Sun, 19 Mar 2006 09:59:01 +0700

If I have a real simple address entry ie. just the email why does this script produce NSReceiverEvaluationScript errors

set liste to {}
set avirer to {}
tell application "Address Book"
	with timeout of 3200 seconds
		set code to ""

repeat with this_person in every person of group "Test"
			if this_person is in liste then
				set avirer to avirer & this_person
			else
				set liste to liste & this_person
			end if
end repeat
repeat with this_person in avirer
			remove this_person from group "Test"
			save addressbook
		end repeat
	end timeout
end tell

I had started by trying to save the vcards and the contacts id but how do I either remove a contact by id or get it's contact object by it's id?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: NSContainerSpecifierError in Address Book
  • Next by Date: Re: Couple of Applescript questions....
  • Previous by thread: NSContainerSpecifierError in Address Book
  • Next by thread: Synchronization Issues? or Why do my Shell Scripts Bite me after they are Done?
  • Index(es):
    • Date
    • Thread