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





Recent Comments