Dial phone numbers using Skype via Launchbar

Aug 17, '05 07:51:00AM

Contributed by: Anonymous

Launchbar has a feature that allows one to run a script when the result of a search is a phone number. I found the following script online, which allows you to dial the number in Skype.

property lb_prefix : "tel:"

on handle_string(s)
  --trim the LaunchBar prefix if it exists:  
  if s starts with lb_prefix then set s to ¬
    (text ((count lb_prefix) + 1) thru -1 of s)
  tell application "Skype"
    get URL "callto:+1" & s
  end tell
end handle_string
This works fine for US numbers. However, it doesn't seem to work with international numbers. For example, if the number starts with "+44" then the script will tell Skype to dial "+1+44." Does anybody know how to modify it?

[robg adds: In order to give credit where credit is due, I did a bit of web searching for the original posting of the above script. I believe I found it in this anonymous comment to an article called Mac Asterisk community, and dial Skype from your Address Book on the B.Mann Consulting web site. I don't have Skype installed, though, so I can't test this one...]

Comments (3)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050810145110629