Address Book Groups...
Address Book Groups...
- Subject: Address Book Groups...
- From: David Crowe <email@hidden>
- Date: Tue, 24 May 2005 09:00:00 -0600
Title: Address Book Groups...
I discovered this script, which is somewhat similar to what Paul
Berkowitz suggested. The 'add' command definitely is the trick to
this! :
on assignPersonToGroup(thePerson,
theGroup)
if
(theGroup is not equal
to
"")
then
tell
application
"Address
Book"
set
nameOfEveryGroup
to name of every group
if
nameOfEveryGroup
contains
theGroup
then
set
theGroupByID
to group
named theGroup
add thePerson to
theGroupByID
else
set
newGroup
to make new group with
properties {name:theGroup}
add thePerson to
newGroup
end
if
end
tell
end
if
end assignPersonToGroup
- David Crowe
_______________________________________________
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