• 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
Re: All groups of person in Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: All groups of person in Address Book


  • Subject: Re: All groups of person in Address Book
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 22 May 2003 23:41:38 -0700

On Thursday, May 22, 2003, at 09:56 PM, Todd Geist wrote:

I am trying to get all the groups for a person in OSX Address Book

This doesn't work:

tell application "Address Book"
get every group of person 1
"Address Book got an error: NSInternalScriptError"

Can anybody give me a clue?

Busted in 10.2, fixed in a future release. In the meantime, you can do something like this:

tell application "Address Book"
set p to "Rufus T. Firefly"
set g to {}
repeat with i in every group
if exists person p of i then
set end of g to the name of i
end if
end repeat
g --> {"Buddy", "Work"} (or whatever...)
end tell


--Chris Nebel
Apple Development Tools
_______________________________________________
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.

References: 
 >All groups of person in Address Book (From: Todd Geist <email@hidden>)

  • Prev by Date: Re: All groups of person in Address Book
  • Next by Date: Sorting entries in Address Book
  • Previous by thread: Re: All groups of person in Address Book
  • Next by thread: Sorting entries in Address Book
  • Index(es):
    • Date
    • Thread