Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bodeh6

macrumors 6502a
Original poster
May 18, 2005
773
0
I was wondering if there is a way to make it when you highlight something in Safari and then ctrl click it and do google search if that search can open a new tab and leave the current tab as is? Currently the search opens in the active tab. I like it in Mozilla/Firefox where when you google search for the ctrl click button, it will open it in a new tab.
 
Select word, press Command+Shift+L. But that brings the search to a new window though. :(
 
Lacero said:
Select word, press Command+Shift+L. But that brings the search to a new window though. :(

Thanks for the tip and I found out how to do it in tabs too. In Safari's general preferences, on the "Open Links from applications" just select the option "in a new tab in current window".
 
This is really basic funtionality that should be included within Safari preferences without hitting "command shift L".
 
When control-clicking text in Safari you can also hold down the Apple (Command) key when you click 'Search in Google'. Bingo, new tab.
 
Create new service

I have a broken arm and it's difficult to hold down cmd and click, so I found a workaround based on http://rentzsch.tumblr.com/post/5794765921/search-with-google-using-chrome

Open Automater -> Choose Service -> Find 'Run Shell Script' action and drag to workflow window -> Choose '/usr/bin/ruby' from Shell drop down menu -> type the following
Code:
require 'cgi'
`open 'http://www.google.com/search?q=#{CGI.escape(STDIN.read.chomp)}'`

Then save it with a title like "Search With Google (New Window)" and you are done.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.