Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Try this | 3 comments | Create New Account
Click here to return to the 'Try this' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Try this
Authored by: sinjin on Aug 18, '05 01:02:32AM
property lb_prefix : "tel:"
on handle_string(the_number)
	--trim the LaunchBar prefix if it exists:  
	if the_number starts with lb_prefix then set the_number to 
		(text ((count lb_prefix) + 1) thru -1 of the_number)
	if first character of the_number is "+" then
		set country_code to ""
	else if first character of the_number is "1" then
		set country_code to "+"
	else
		set country_code to "+1"
	end if
	try
		tell application "Skype"
			get URL "callto:" & country_code & the_number
		end tell
	on error
		display dialog "Better check that number and try again!"
	end try
end handle_string
Perhaps you can help me, now! I can't figure out how to set up Launchbar to direct phone numbers to this script. I read the LB help and see how to pass input text to the script, but not the results of a phone number search.

[ Reply to This | # ]