How do I catch href tel web link to dial a phone number?
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