Search-0-Matic

this is a cool little searching script that can search google, yahoo and the help viewer. its great just sitting there in the dock so you are just one click away from internet search engines or a little help from the help viewer.

OS version: OS X

set the curr_tim to ((the current date) as string)
set search_disp to (display dialog "Search at " & curr_tim default answer "" buttons {"Google Search", "Yahoo Search", "Help Search"} default button 1)
set my_search to text returned of the result
if the button returned of search_disp is "Google Search" then open location "http://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=" & my_search
if the button returned of search_disp is "Yahoo Search" then open location "http://search.yahoo.com/search?p=" & my_search & "&fr=fp-pull-web-t&n=20&fl=0&x=wrt"
if the button returned of search_disp is "Help Search" then tell application "Help Viewer"
	activate
	search looking for my_search
end tell