is there such a thing as a calculator snippet?

General discussions about LaunchBar
acrellin
Posts: 2
Joined: Tue Dec 16, 2014 4:09 am

is there such a thing as a calculator snippet?

Postby acrellin » Tue Dec 16, 2014 4:14 am

I perform one particular calculation regularly throughout a working week, and am keen to find out if I can use launchbar solely to calculate it:

=(cost/1.165)/1.1

I'm looking to either enter or paste the cost amount into the calculator, then append the required snippet formula into it, and copy the answer out once calculated.

I'm currently using Keyboard Maestro and Launcher to do this, but was wondering if there's a quicker way.

Thanks in advance,

norbert
Objective Development
Objective Development
Posts: 647
Joined: Thu Nov 09, 2006 6:30 pm

Re: is there such a thing as a calculator snippet?

Postby norbert » Thu Dec 25, 2014 3:17 pm

You can actually do this with a search template:

Code: Select all

x-launchbar:calculate?argument=*&expression=(@/1.165)/1.1&title=f(@)=&result=@


You can then select this template in LaunchBar, press Space, enter the function argument and hit Return to get the result displayed in large type.

Or invoke it via Instant Send - e.g. select a number in a text document, press and hold Command-Space to send the number to LaunchBar, type an abbreviation of your search template and hit Return.

norbert
Objective Development
Objective Development
Posts: 647
Joined: Thu Nov 09, 2006 6:30 pm

Re: is there such a thing as a calculator snippet?

Postby norbert » Thu Dec 25, 2014 3:26 pm

Look at this forum topic for further examples:
Unit Conversion (Weight, Temperature, etc.)

acrellin
Posts: 2
Joined: Tue Dec 16, 2014 4:09 am

Re: is there such a thing as a calculator snippet?

Postby acrellin » Fri Dec 26, 2014 3:20 am

Just what I was looking for Norbert, much appreciated. I hadn't come across the search template functionality for calculators, just awesome.

Thanks again,


Return to “LaunchBar General”

Who is online

Users browsing this forum: Google Feedfetcher and 4 guests