Call phone number with Bria 5 no longer working

Sharing and discussing custom actions for LaunchBar
RoyalMike
Posts: 3
Joined: Fri Dec 22, 2017 3:28 pm

Call phone number with Bria 5 no longer working

Postby RoyalMike » Fri Dec 22, 2017 3:44 pm

I am so used to calling contacts with LaunchBar by just pressing return, which opens Bria on my mac and then dials the number.
This seems to no longer work since the last update to MacOS 10.13.2

This is the script i call with Launchbar:

Code: Select all

property lb_prefix : "tel:"

on handle_string(s)
   if s starts with lb_prefix then set s to (text ((count lb_prefix) + 1) thru -1 of s) --trim the LaunchBar prefix if it exists
   set s to replaceText("-", "", s) --cut out the '-' char
   open location "tel://" & s
end handle_string

on replaceText(find, replace, subject)
   set prevTIDs to text item delimiters of AppleScript
   set text item delimiters of AppleScript to find
   set subject to text items of subject
   
   set text item delimiters of AppleScript to replace
   set subject to "" & subject
   set text item delimiters of AppleScript to prevTIDs
   
   return subject
end replaceText


I'm not really an AppeScript expert, but what i understand is calling

Code: Select all

open location "tel://" & s
does not seem to work. But if i specify the phone number, let's say

Code: Select all

open location "tel://1234567"
the script works and Bria dials the number. So I think Launchbar is not correctly giving the phone numer via

Code: Select all

handle_string
?

Can anybody help me?

RoyalMike
Posts: 3
Joined: Fri Dec 22, 2017 3:28 pm

Re: Call phone number with Bria 5 no longer working

Postby RoyalMike » Wed Jan 17, 2018 4:13 pm

Thanks. LaunchBar version 6.9.4 has resolved the issue. It works again. Thanks for the good work.


Return to “LaunchBar Actions”

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests

cron