Re: Setting 'group' for person in Address Book....
Re: Setting 'group' for person in Address Book....
- Subject: Re: Setting 'group' for person in Address Book....
- From: Michelle Steiner <email@hidden>
- Date: Mon, 23 May 2005 14:04:07 -0700
On May 23, 2005, at 1:16 PM, Paul Berkowitz wrote:
This works also:
tell application "Address Book"
set the_person to person "Sharon Steiner"
remove the_person from the_person's groups
add the_person to group "Family"
end tell
Does that really work when the person has more than one group, or
is Address
Book just resolving 'groups' to a single group when there's only
one? (I.e.
coercing a single-item list to its single member.) Have you tried
it when
there are several groups? That would be quite cool if it works.
I tried it with several groups, and with a single group, and it
worked in both cases.
-- Michelle
--
"Should any political party attempt to abolish social security,
unemployment insurance, and eliminate labor laws and farm programs,
you would not hear of that party again in our political history.
There is a tiny splinter group, of course, that believes that you
can do these things. Among them are a few Texas oil millionaires,
and an occasional politician or businessman from other areas. Their
number is negligible and they are stupid."
President Dwight D. Eisenhower, 1952
_______________________________________________
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