Re: All groups of person in Address Book
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.