by Nelson Minar [email protected]
A bit of Applescript to make Chrome integrate nicely on the Mac.
A replacement browser program that launches URLs in new Chrome windows. Chrome by default opens in tabs which is broken with spaces. This program is originally by Mike Hardy; I modified it to always open the browser window at a specific size. More info on my blog.
Opens the current contents of the clipboard in your browser. If the clipboard looks like a URL it'll open directly, otherwise it will make a Google search query. Handy as a hotkey: I use Alfred to bind this to caps lock. More info on my blog.
AppleScript is in a binary format. Here's a text copy of the code for your inspection (may be out of date)
set u to the clipboard
if not (u starts with "http://" or u starts with "https://") then set u to "http://www.google.com/search?q=" & u
open location u