• 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: Thu, 05 Jan 2017 11:16:34 -0800

On Jan 5, 2017, at 10:46 AM, Yvan KOENIG <email@hidden> wrote:

set shCMD to "echo " & quoted form of e & " | tr '\"' '\\n' | sed -En '/[0-9]/p'"
# The command will extract the phone numbers from the error message
set phoneNumList to paragraphs of (do shell script shCMD)

Hi Yvan,

I was able to get your version to work.  Thanks.  

How would I strip all non numeric characters from the phone numbers using sed?  No matter what I try, it just causes errors.

Thanks again,
Marc
 _______________________________________________
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: Christopher Stone <email@hidden>)
 >Re: Creating a list of numbers from a Contacts group (From: debt <email@hidden>)
 >Re: Creating a list of numbers from a Contacts group (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Creating a list of numbers from a Contacts group
  • Next by Date: Re: Creating a list of numbers from a Contacts group
  • 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