• 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: Steve Mills <email@hidden>
  • Date: Thu, 05 Jan 2017 21:51:56 +0000 (GMT)

On Jan 05, 2017, at 03:22 PM, debt <email@hidden> wrote:

I’m sure I’m missing something here, but why not do something like this instead?  It’s shorter, you’re not changing the delimiters, and not dealing with paragraphs and characters.

tell application "Contacts" to tell group "Solicitors" to set phone_num_list to value of every phone of every person

set solicitor_list to {}
repeat with each_contact in my phone_num_list
repeat with each_phone_num in each_contact
set solicitor_list to solicitor_list & each_phone_num
end repeat
end repeat

I converted to text so I could get rid of all the empty items in the list.

Sent from iCloud's ridiculous UI, so, sorry about the formatting

 
 _______________________________________________
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: 
 >Re: Creating a list of numbers from a Contacts group (From: debt <email@hidden>)

  • Prev by Date: Re: Creating a list of numbers from a Contacts group
  • Next by Date: Re: Sierra mail problem
  • Previous by thread: Re: Creating a list of numbers from a Contacts group
  • Next by thread: Re: Creating a list of numbers from a Contacts group
  • Index(es):
    • Date
    • Thread