Mac OS X (Lion) Chrome: shortcut for "Search With Google"
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles
--
Chapters
00:00 Mac Os X (Lion) Chrome: Shortcut For &Quot;Search With Google&Quot;
00:37 Accepted Answer Score 57
01:11 Answer 2 Score 7
01:25 Answer 3 Score 12
01:46 Thank you
--
Full question
https://superuser.com/questions/369934/m...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#googlechrome #keyboardshortcuts #osxlion
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles
--
Chapters
00:00 Mac Os X (Lion) Chrome: Shortcut For &Quot;Search With Google&Quot;
00:37 Accepted Answer Score 57
01:11 Answer 2 Score 7
01:25 Answer 3 Score 12
01:46 Thank you
--
Full question
https://superuser.com/questions/369934/m...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#googlechrome #keyboardshortcuts #osxlion
#avk47
ACCEPTED ANSWER
Score 57
The Search With Google service is provided by Safari, and it is not meant to work with other browsers.
You can create another service yourself though:
- Open Automator and choose the Service template
- Add a Run Shell Script action for a script like
open "http://www.google.com/search?q=$(ruby -rcgi -e 'print CGI.escape $<.read.chomp')"
- Save the service and assign it a shortcut from System Preferences
ANSWER 2
Score 12
Nowadays you can also use "Run Javascript" in automator services, and stack it with "Internet" → "Open webpages". Something like this:
JavaScript to run:
function run(input, parameters) {
return "https://www.google.com/search?q=" + encodeURI(input)
}
ANSWER 3
Score 7
Just wanted to add that if you use accepted answer and save the service as "Search with Google", it will be executed instead of the service of the same name that launches Safari.