Change search Google in Safari to use Firefox

Cmd+Shift+L searches for the selected text in Google using Safari. Can I change this to use Firefox instead?


Solution 1:

You can create a new service with automator, use the "Run Shell Script" action, and use:

open -a FireFox "http://www.google.com/search?q=$1"

as the shell script text, then save it as "Open with Firefox" or whatever you like.

-or-

follow this summary from this thread:

  1. Download and Install OnMyCommand/OMCEdit

  2. Open OMCEdit

  3. Click on "Download Commands" then "Download"

  4. Go in "Command Library"

  5. Choose #22 and click on "Append to Command"

  6. Change the name if you want (in "Command Name")

  7. Write " Top Level " in location if you don't want a sub-menu, or choose a name for the sub-menu ("In On My Command" is the default)

  8. Save

  9. You're done!

Solution 2:

What you need to do is create a new Automator service. Unfortunately, Firefox's AppleScript support sucks, so you'll have to do it manually.

You should be able to use a combination of the tips in this article and this comment, and the page Calavera linked to should give you a general idea of how to format the URLs.