Re: adressbook group trouble
Re: adressbook group trouble
- Subject: Re: adressbook group trouble
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 12 Oct 2008 16:10:38 -0700
- Thread-topic: adressbook group trouble
Title: Re: adressbook group trouble
On 10/12/08 3:36 PM, "Michelle Steiner" <email@hidden> wrote:
You are overthinking it. Try this script:
tell application "Address Book"
set Mensch to "Any Name"
set Gruppe to "Test"
add person Mensch to group Gruppe
tell application "Address Book" to save addressbook
end tell
And you don't need one tell inside another tell to the same app, either, of course. (You were probably cutting and pasting for concision.).
tell application "Address Book"
set Mensch to "Any Name"
set Gruppe to "Test"
add person Mensch to group Gruppe
save addressbook
end tell
The main problem with the original script was that Richard was adding a (person) ID to a (group) ID. You can't add an ID to an ID: you can only add a person to a group.
--
Paul Berkowitz
_______________________________________________
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