Re: Address book & Groups
Re: Address book & Groups
- Subject: Re: Address book & Groups
- From: Michelle Steiner <email@hidden>
- Date: Wed, 4 Apr 2007 19:12:27 -0700
On Apr 4, 2007, at 5:05 PM, Bob Cuilla wrote:
I have an existing "person" in addressbook and would like to add
that person to other groups without adding taht "person" again.
That is, one person needs to be in several groups. Is this possible?
tell application "Address Book"
set the_peeps to (choose from list (get name of the people) with
multiple selections allowed)
set the_groups to (choose from list (get name of the groups))
repeat with the_peep in the_peeps
copy person the_peep to after the people of group (item 1 of
the_groups)
end repeat
save addressbook
end tell
I couldn't figure out a way to put them all in the group all at once,
so had to use the repeat.
-- Michelle
--
"What we have in this country is socialism for the rich and free
enterprise for the poor." -- Gore Vidal
_______________________________________________
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