Hello MacScripter, Today i want show you a shortcut for Google and Youtube searchbar
set choice to button returned of (display dialog "Which service wish you use?" buttons {"Google", "Youtube", "Annulla"} with title "Web search")
if choice = "Google" then
set search to text returned of (display dialog "Google Search!" default answer "" buttons {"Cerca", "Annulla"} with title "Google" default button 1)
open location "http://www.google.com.au/search?q=" & search
else if choice = "Youtube" then
set search to text returned of (display dialog "Youtube Search!" default answer "" buttons {"Cerca", "Annulla"} with title "Youtube" default button 1)
open location "http://www.youtube.com/results?search_query=" & search
end if