I just started using applescript today and i have produced this so far... a youtube and google searcher...
display dialog "Where will you search from?" buttons {"Google", "Youtube", "Exit"}
set search to text returned of (display dialog "Search Google!" default answer "" buttons {"Search", "Exit"} default button 1)
open location "http://www.google.com.au/search?q=" & search
set search to text returned of (display dialog "Search Youtube!" default answer "" buttons {"Search", "Exit"} default button 1)
open location "http://www.youtube.com/results?search_query=" & search
after trying to get the exit buttons to actually exit the program it kept coming up with error messages so if you know how to fix the exit button and maybe add some cool additions to to make it better that would be awesome!
Thanks!
display dialog "Where will you search from?" buttons {"Google", "Youtube", "Exit"}
set search to text returned of (display dialog "Search Google!" default answer "" buttons {"Search", "Exit"} default button 1)
open location "http://www.google.com.au/search?q=" & search
set search to text returned of (display dialog "Search Youtube!" default answer "" buttons {"Search", "Exit"} default button 1)
open location "http://www.youtube.com/results?search_query=" & search
after trying to get the exit buttons to actually exit the program it kept coming up with error messages so if you know how to fix the exit button and maybe add some cool additions to to make it better that would be awesome!
Thanks!