• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: adressbook group trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: adressbook group trouble
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: adressbook group trouble (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: adressbook group trouble
  • Next by Date: Re: adressbook group trouble
  • Previous by thread: Re: adressbook group trouble
  • Next by thread: Re: adressbook group trouble
  • Index(es):
    • Date
    • Thread