• 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: Creating a list of numbers from a Contacts group
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a list of numbers from a Contacts group


  • Subject: Re: Creating a list of numbers from a Contacts group
  • From: debt <email@hidden>
  • Date: Fri, 23 Dec 2016 16:46:35 -0800

On Dec 23, 2016, at 4:00 PM, Andrew Oliver <email@hidden> wrote:

You might need a loop around the person’s phone elements.

Andrew,

I think you’re right about that.  This seems to work.

Thanks,
Marc


tell application "Contacts"
set g_name to "Solicitors"
set solicitor_list to {}
repeat with each_contact in (get every person of group  g_name)
repeat with each_phone_num in (get phones of  each_contact)
set  each_num to (get value of  each_phone_num)
set solicitor_list to solicitor_list & each_num
end repeat
end repeat
end tell
 _______________________________________________
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

References: 
 >Creating a list of numbers from a Contacts group (From: debt <email@hidden>)
 >Re: Creating a list of numbers from a Contacts group (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: Creating a list of numbers from a Contacts group
  • Next by Date: Re: Cropping pdf in ACROBAT
  • Previous by thread: Re: Creating a list of numbers from a Contacts group
  • Next by thread: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
  • Index(es):
    • Date
    • Thread