Re: Creating a list of numbers from a Contacts group
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