Re: How do I catch href tel web link to dial a phone number?
Re: How do I catch href tel web link to dial a phone number?
- Subject: Re: How do I catch href tel web link to dial a phone number?
- From: Takaaki Naganoya <email@hidden>
- Date: Fri, 1 Dec 2017 10:03:45 +0900
Bill,
I understand your purpose. You have to search by keywords “custom URL scheme
AppleScript”.
“Custom URL scheme” is a kind of a very classical method for over 15 years.
There is a lot of information on the Web.
I added the new chapter about “Custom URL scheme” to my book. It took 16 pages
to describe :-).
--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/
> 2017/12/01 9:29、Bill Vlahos <email@hidden>のメール:
>
> Takaaki,
>
> I didn’t mean to mention Automator. I originally tried to write an Automator
> service for this thinking that Automator would pass the referenced telephone
> number to a variable but it didn’t seem to capture anything. An applet is
> what I want.
>
> What would the plist syntax look like so that it passes the details to a
> variable in the applet?
>
> Yes MXIE and ZAC are VOIP applications.
>
> Thank you,
> Bill Vlahos
>
>> On Nov 30, 2017, at 7:07 AM, Takaaki Naganoya <email@hidden> wrote:
>>
>>> 2017/11/30 6:40、Bill Vlahos <email@hidden>のメール:
>>>
>>> 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/
>>> 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” 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?
>>
>> To receive the URL scheme “tel:”, the script have to run as an applet and
>> have a Info.plist entry to describe to receive URL scheme “tel:”.
>>
>> I don’t have the experience with MXIE and ZAC (VoIP apps?). So, I don’t
>> understand why you want to write the script with Automator not with Script
>> Editor.
>>
>>
>> --
>> Takaaki Naganoya
>> email@hidden
>> http://piyocast.com/as/
>
_______________________________________________
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