• 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: Paul Berkowitz <email@hidden>
  • Date: Mon, 23 May 2005 10:37:09 -0700
  • Thread-topic: Setting 'group' for person in Address Book....

In addition, David wanted to _change_ a group, not just add one, but remove
the previous one(s). That can be done like this:

tell application "Address Book"
    set currentGroups to every group of person "Sharon Steiner"
    repeat with i from 1 to (count currentGroups)
        set currentGroup to item i of currentGroups
        remove person "Sharon Steiner" from currentGroup
    end repeat
    add person "Sharon Steiner" to group "Family"
end tell

--
Paul Berkowitz


> From: Michelle Steiner <email@hidden>
> Date: Mon, 23 May 2005 09:36:57 -0700
> To: Applescript Users <email@hidden>
> Subject: Re: Setting 'group'  for person in Address Book....
>
>
> On May 23, 2005, at 8:48 AM, Daniel Jalkut wrote:
>
>> What works for me, and with less complicated verbiage, is:
>>
>> add person "Sharon Steiner" to group "Family"
>
> I couldn't come up with "add" because I kept missing it in the
> dictionary.  Thanks.
>
> -- Michelle
>
>> On May 22, 2005, at 11:12 PM, Michelle Steiner wrote:
>>
>>> tell application "Address Book"
>>>     copy person "Sharon Steiner" to after people of group "Family"
>>> end tell
>
>
> --
> The Bible contains six admonishments to homosexuals and three
> hundred, sixty-two admonishments to heterosexuals.  That doesn¹t mean
> that God doesn¹t love heterosexuals.  It¹s just that they need more
> supervision. ‹Lynne Lavner
>
>  _______________________________________________
> 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
>


 _______________________________________________
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

  • Follow-Ups:
    • Re: Setting 'group' for person in Address Book....
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Setting 'group' for person in Address Book.... (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Setting 'group' for person in Address Book....
  • Next by Date: Filemaker Pro chokes on Find command
  • Previous by thread: Re: Setting 'group' for person in Address Book....
  • Next by thread: Re: Setting 'group' for person in Address Book....
  • Index(es):
    • Date
    • Thread