I'm looking for a script (or Launchbar action, or an application) which will take the highlighted text from the front window of any application and send it to my default browser to search in Google. I'd like to be able to bind it to a system-wide keyboard shortcut. I'd like to be able to highlight some text, press a key and have the Google results opened in my browser.
It already exists in Program Name Menu » Services » Search With Google (only visible with text selection). Assign a keyboard shortcut in System Preferences » Keyboard » Keyboard Shortcuts » Services. This one always uses Safari though.
It's possible that your browser provides a similar Service already, if it has proper integration into OS X and isn't a cross-platform piece of garbage. Just check the list whether you see an appropriate entry.
If you want to build it yourself, or want to use your non-Safari default browser:
In the bar at the upper right, select Service receives text as input in any application.
From the library at the left, double-click Run Shell Script in Utilities.
In the new element, select Pass input: as arguments and enter the following text into the text box:
Save as e.g. "Search Selection in Google".
|show 1 more comment|