Creating a list of numbers from a Contacts group
Creating a list of numbers from a Contacts group
- Subject: Creating a list of numbers from a Contacts group
- From: debt <email@hidden>
- Date: Fri, 23 Dec 2016 15:53:36 -0800
I want to create a list of all phone numbers that are in a Contacts group. However, I’m running into a problem. The script fragment below doesn’t work unless there’s only a single phone number in each contact. I’d like to script this so that if a contact has multiple phone numbers, each number will be added to the list.
Thanks, Marc
tell application "Contacts" set gName to "Solicitors" set solicitor_list to {} set people_count to (count every person of group gName) repeat with i from 1 to people_count set number to (get value of phone of person i of group gName) set solicitor_list to solicitor_list & number 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