Safari Google Search

Author
Discussion

bluest2

Original Poster:

4,408 posts

217 months

Tuesday 11th December 2007
quotequote all
Is it possible to make the google search built into Safari search using Google.co.uk as opposed to google.com?

dhutch

14,399 posts

198 months

Tuesday 11th December 2007
quotequote all
Proberbly, certainly possable in opera to get it to do a uk only search.

kiwisr

9,335 posts

208 months

Tuesday 11th December 2007
quotequote all
Open a Terminal window and type this is. (all on one line)

perl -pi -e 's/google.com\/%@\?q=%@&ie=UTF-8&oe=UTF-8/google.co.uk\/Special:Search\?%@=%@&0=00/g' /Applications/Safari.app/Contents/MacOS/Safari




Edited by kiwisr on Tuesday 11th December 15:55

dhutch

14,399 posts

198 months

Tuesday 11th December 2007
quotequote all
Thats:
perl -pi -e 's/google.com\/%@\?q=%@&ie=UTF-8&oe=UTF-8/google.co.uk\/Special:Search\?%@=%@&0=00/g/Applications/Safari.app/Contents/MacOS/Safari


Then

kiwisr

9,335 posts

208 months

Tuesday 11th December 2007
quotequote all
dhutch said:
Thats:
perl -pi -e 's/google.com\/%@\?q=%@&ie=UTF-8&oe=UTF-8/google.co.uk\/Special:Search\?%@=%@&0=00/g/Applications/Safari.app/Contents/MacOS/Safari


Then
No, corrected above. Took a while to figure out the formatting. smile

bluest2

Original Poster:

4,408 posts

217 months

Tuesday 11th December 2007
quotequote all
Just tried the above, I get this...

[1] 589
[2] 590
[3] 591
-bash: 0=00/g/Applications/Safari.app/Contents/MacOS/Safari: No such file or directory
[2] Done ie=UTF-8
[3]+ Done oe=UTF-8/google.co.uk\/Special:Search\?%@=%@
Macintosh:~ useruser$ syntax error at -e line 2, near "pi -e "
Substitution replacement not terminated at -e line 2.


NickFRP

5,094 posts

236 months

Wednesday 12th December 2007
quotequote all
off topic i know but how would i do this in linux and/or XP?

Thanks!

Red Firecracker

5,276 posts

228 months

Wednesday 12th December 2007
quotequote all
This is a quite handy little app for Safari;

http://www.inquisitorx.com/safari/

Beware though, a previous version had google.co.uk as google.co.gb which needed editing in the prefs, but it should have been fixed in the newest edition.

kiwisr

9,335 posts

208 months

Wednesday 12th December 2007
quotequote all
bluest2 said:
Just tried the above, I get this...

[1] 589
[2] 590
[3] 591
-bash: 0=00/g/Applications/Safari.app/Contents/MacOS/Safari: No such file or directory
[2] Done ie=UTF-8
[3]+ Done oe=UTF-8/google.co.uk\/Special:Search\?%@=%@
Macintosh:~ useruser$ syntax error at -e line 2, near "pi -e "
Substitution replacement not terminated at -e line 2.
You have to use the version in my previous post that I corrected (the one listed by dhutch has an apostrophe missing after the g

Edited by kiwisr on Wednesday 12th December 10:28

bluest2

Original Poster:

4,408 posts

217 months

Wednesday 12th December 2007
quotequote all
kiwisr said:
bluest2 said:
Just tried the above, I get this...

[1] 589
[2] 590
[3] 591
-bash: 0=00/g/Applications/Safari.app/Contents/MacOS/Safari: No such file or directory
[2] Done ie=UTF-8
[3]+ Done oe=UTF-8/google.co.uk\/Special:Search\?%@=%@
Macintosh:~ useruser$ syntax error at -e line 2, near "pi -e "
Substitution replacement not terminated at -e line 2.
You have to use the version in my previous post that I corrected (the one listed by dhutch has an apostrophe missing after the g


Edited by kiwisr on Wednesday 12th December 10:28
I tried that but it still did the the same thing. I'm not sure I'm inputting it in to terminal properly though. The first time i enter nothing happens and i just get a '>' and then when I paste it in again and hit return I get the message above.


Edited by bluest2 on Wednesday 12th December 11:42

bluest2

Original Poster:

4,408 posts

217 months

Wednesday 12th December 2007
quotequote all
Red Firecracker said:
This is a quite handy little app for Safari;

http://www.inquisitorx.com/safari/

Beware though, a previous version had google.co.uk as google.co.gb which needed editing in the prefs, but it should have been fixed in the newest edition.
Thanks. That's done the trick, exactly what I was after.

GHW

1,294 posts

222 months

Wednesday 12th December 2007
quotequote all
Sogudi is another good search add-on for Safari that lets you set the default search engine (and a bunch of other, keyword-defined alternatives).

mft

1,752 posts

223 months

Wednesday 12th December 2007
quotequote all
kiwisr said:
Open a Terminal window and type this is. (all on one line)

perl -pi -e 's/google.com\/%@\?q=%@&ie=UTF-8&oe=UTF-8/google.co.uk\/Special:Search\?%@=%@&0=00/g' /Applications/Safari.app/Contents/MacOS/Safari
MacOS X - it just works wobblehehe

dhutch

14,399 posts

198 months

Wednesday 12th December 2007
quotequote all
mft said:
MacOS X - it just works wobblehehe
biggrin