Re: creating pulldown menu
Re: creating pulldown menu
- Subject: Re: creating pulldown menu
- From: Matt Binkowski <email@hidden>
- Date: Tue, 12 Mar 2002 15:05:39 -0500
i'm trying to incorporate what i've already got (below) with yours and it's
not working.
this is what i already have for one of the scripts:
set searching_window to display dialog ,
"Search Google for:" default answer ,
" " buttons {"Search", "Cancel"} default button "Search"
set button_name to button returned of searching_window
if button_name is "search" then
set search_string to text returned of searching_window
tell application "Internet Explorer"
Activate
OpenURL "
http://www.google.com/search?hl=en&q=" & search_string & ""
end tell
else
close +class Dlg;
end if
on 3/12/02 2:14 PM, Rob Jorgensen at email@hidden wrote:
>
On 3/12/02, Matt Binkowski commented:
>
>
> i have written four scripts that search google, amazon, fatbrain, and ebay,
>
> and i'd like to combine them all into one script so when you run it, you
>
> type what you want to search for and choose which site to run. it doesn't
>
> return a list, it just opens a browser and uses their search engines to run
>
> the search. i know i have sherlock...i'm just playing around.
>
>
Here's a quick, simple method.
>
>
-- Begin Script --
>
>
set siteList to {"google", "amazon", "fatbrain", "ebay"}
>
set chosenSite to (choose from list siteList with prompt "Choose the
>
site." without multiple selections allowed and empty selection
>
allowed) as text
>
>
if chosenSite is "google" then
>
-- do your google stuff here
>
end if
>
>
if chosenSite is "amazon" then
>
-- do your amazon stuff here
>
end if
>
>
if chosenSite is "fatbrain" then
>
-- do your fatbrain stuff here
>
end if
>
>
if chosenSite is "ebay" then
>
-- do your ebay stuff here
>
end if
>
>
-- End Script --
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.