18

I want to make the Search in Google context menu to open my default browser instead of Safari.

6

I believe "Search in Google" is a Mac OS X service provided by Apple. Maybe since they don't know how to pass a webpage in parameter for every browser in the wild, I suppose they limited it to Safari.

What you might try, is to develop your own Service, then go to

System Parameters > Keyboard > Services

Disable the "Search in Google" by Apple and replace it with your own.

You could also try to edit Apple's Service and replace Safari with the browser you want. Since I'm not on my Mac right now, I can't search for them or look if you can edit them.

  • @Mark I'm not saying saying to change the default browser, but to edit the Service itself so he won't call Safari but either the default browser or the browser he wants. – Loïc Wolff Mar 29 '11 at 11:44
  • I'm sure that every browser in the wild will open a webpage if this is the only parameter passed by the command line. And BTW, it enough to test with 5 browsers, or let's say 4 for OS X :) – sorin Mar 29 '11 at 19:11
  • @loic-wolff I don't think you can edit the ready-made services, but you may create your own using a third-party app, such as Bellhop – nuc Mar 29 '11 at 19:22
  • 4
    > "Maybe since they don't know how to pass a webpage in parameter for every browser in the wild, I suppose they limited it to Safari." This is definitely false. OS X already has a preference for setting the default web browser for opening URLs. "Search with Google" blatantly ignores this setting. Also: open -a anybrowser http://google.com – interestinglythere Jan 31 '14 at 20:33
  • Note that I don't think you can turn off "Search with Google" in Mail.app. I have disabled the service but the option still appears in the context menu in Mail.app. – Dale Mar 20 '17 at 18:26
3

This worked for me. It shows how to create your own service that is independent of Safari. https://superuser.com/questions/369934/mac-os-x-lion-chrome-shortcut-for-search-with-google

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .