Setting up LaunchBar search template for multiple sites

17 04 2008

Let’s say you want to search for something simultaneously on multiple web sites. You could use Saft (and chase after the latest version every time Apple release an update), or, if you are a LaunchBar user (which you should be!) setup a AppleScript like so:

on handle_string(s)

tell application “Safari”

activate

 

tell application “System Events”

tell process “Safari”

keystroke “n” using command down

end tell

end tell

delay 1

set the URL of document 1 to “http://www.google.com/search?hl=en&q=” & s

 

tell application “System Events”

tell process “Safari”

keystroke “t” using command down

end tell

end tell

set the URL of document 1 to “http://search.yahoo.com/search?p=” & s

 

end tell

 

end handle_string

 

After LaunchBar indexed the script you can trigger it as a search template. The script will open a new Safari

window with two tabs, showing the results from Google and Yahoo





Favorites: LaunchBar

14 04 2008

Now, this is a tool you have to pay money for $19.95, but I believe it’s worth every penny. I know there are alternatives – like QuickSilver which I believe never came out of it’s beta state. It is free however. And has an open plugin platform. However, it’s a bit too geeky (if there is such a thing) for my taste.

200804141041.jpg

Here a couple of features I really enjoy and use on a daily basis:

200804141053.jpg

It also allows for setting up search templates manually for any site really easily. A great time saver.

 

 





Happy Birthday Dave! (1Password 42% off)

13 04 2008

Special Happy Birthday Dave! sale:

but it only lasts another day! Click here if you’re interested (I couldn’t live without 1Password!):

Dave Teare, co-founder of Agile Web Solutions, is another year older today, and in following tradition Dave wanted to share the celebration with everyone by creating a special Birthday ZOT Deal!

 





How (long) can they get away with this?

13 04 2008

Looks like Psystar is selling a “OpenMac”. Apparently you buy the box $399 and Leopard. And you have a very cheap Mac!

 

Psystar Homepage

 

 





A digital Fax for your desktop

4 04 2008

Often times I need to make a quick screenshot, maybe to compare something, or just to keep a reminder around. My workflow goes something like this:
1. press hotkey (Cmd-Ctrl-Shift 4)
2. locate screen capture file on the Desktop
3. open it in Preview

Here a little script which, when executed will perform the screen capture, and open the saved file in Preview:

#!/bin/csh
rm -f /Users/your_username/grab.jpg
screencapture -i /User/your_username/grab.jpg
open /Applications/Preview.app /Users/your_username/grab.jpg

Make sure to chmod +x the file so it is executable. This is really a simple, single-purpose script – one could extend its functionality by numbering the screen captures to preserve older ones.

Using a launcher application, preferably LaunchBar, to execute the script. You can also use OS X’s Spotlight search to start the script.

You should see your mouse pointer turning into a crosshair. Click-drag the area on the screen you like to capture. Now Preview should open you captured image. You just send yourself a digital fax! (woot 21st century!)

Here a screen capture of my blog post writing the code for the screen capture script after I executed the screen capture once – I feel dizzy…