Mac OS X Hints - A community-built collection of OS X hints
on handle_url(args) if (|URL| of args starts with "https://mail.google.") then tell application "Google Chrome" open location |URL| of args end tell else if (|URL| of args starts with "http://") then tell application "Firefox" open location |URL| of args ...