• 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: Setting 'group' for person in Address Book....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Setting 'group' for person in Address Book.... (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Setting a list to a random order
  • Next by Date: Re: Setting a list to a random order
  • Previous by thread: Re: Setting 'group' for person in Address Book....
  • Next by thread: Running this script without the "Enable access for assistive devices" box checked
  • Index(es):
    • Date
    • Thread