• 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
How do I catch href tel web link to dial a phone number?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I catch href tel web link to dial a phone number?


  • Subject: How do I catch href tel web link to dial a phone number?
  • From: Bill Vlahos <email@hidden>
  • Date: Wed, 29 Nov 2017 13:40:14 -0800

I would like to catch the href tel link from a phone number on a web page to
enable click to dial from a web page with our Zultys unified communications
applications MXIE and ZAC.

https://developers.google.com/web/fundamentals/native-hardware/click-to-call/
<https://developers.google.com/web/fundamentals/native-hardware/click-to-call/>
has a great discussion and link on this which should work for Firefox and
Chrome on Macintosh OS. For example Firefox prompts the user to choose which
application to send it to.

I wrote the following Automator Application expecting input to include
“tel:+1-303-449-7111 <tel:+1-303-449-7111>” as the input for Automator
application but nothings seems to be passed to it. There probably is a way to
catch it just with an AppleScript application but I don’t know how to do that.

The Automator AppleScript portion is below.

on run {input, parameters}
        display dialog input
        set output to ""
        set vTemp to input as string
        repeat with i from 1 to count of characters of vTemp
                if "1234567890" contains item i of vTemp then set output to
output & item i of vTemp
        end repeat
        display dialog output
        return output
end run

How do I capture and pass the phone number to my script?

Thank you,
Bill Vlahos
 _______________________________________________
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

  • Follow-Ups:
    • Re: How do I catch href tel web link to dial a phone number?
      • From: Takaaki Naganoya <email@hidden>
  • Prev by Date: Re: Looking for Sound Preference magic
  • Next by Date: Re: How do I catch href tel web link to dial a phone number?
  • Previous by thread: Re: Looking for Sound Preference magic
  • Next by thread: Re: How do I catch href tel web link to dial a phone number?
  • Index(es):
    • Date
    • Thread