Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Merv...oh Merv....' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Merv...oh Merv....
Authored by: macubergeek on Jun 02, '03 02:00:43PM

You being an old VMS maven should know better ;-)
Why do anything the easy way when theres a geekier way ;-)

Heres a script that enables you to change the default search engine on the fly between google, altavista and dogpile

Be sure to back up the plist file first then run this script.
Verify line formatting etc etc.
[code]
#!/bin/sh

######################################## ##
##This script overrides the system wide default search engine so that
## it is your choice without having to reset multiple web browsers.
## This script enables you to switch between google, altavista, and
## dogpile on the fly. If you want to add another just add another
## whatever) etc etc statement to the case statement below.
## Useage: -*>script by macubergeek<*-
## dsearch "http://google.com"
#######################################



sudo cp -p /Users/$USER/Library/Preferences/com.apple.internetconfig.plist \
/Users/$USER/Library/Preferences/Backup.com.apple.internetconfig.plist

echo "Backing up original preference file..."

case $1 in
google) defaults write com.apple.internetconfig "Version 2.5.3" = \
{ "ic-added" = { WebSearchPagePrefs = {"ic-data" = \
"http://www.google.com/"; }; }; }; }; "ic-deleted" = (); };;;
altavista) defaults write com.apple.internetconfig "Version 2.5.3" = \
{ "ic-added" = { WebSearchPagePrefs = {"ic-data" = \
"http://www.google.com/"; }; }; }; }; "ic-deleted" = (); };;;
dogpile) defaults write com.apple.internetconfig "Version 2.5.3" = \
{ "ic-added" = { WebSearchPagePrefs = {"ic-data" = \
"http://www.google.com/"; }; }; }; }; "ic-deleted" = (); };;;
esac

[/code]



[ Reply to This | # ]
Merv...oh Merv....
Authored by: uurf on Jun 02, '03 02:50:29PM

heh - that's funny.



[ Reply to This | # ]