• 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
Address Book Groups...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Address Book Groups...
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Folder actions steal UI foces
  • Next by Date: Re: Tiger forgets his windows position
  • Previous by thread: Re: Applescript an Automator action?
  • Next by thread: Re: Address Book Groups...
  • Index(es):
    • Date
    • Thread