Re: creating pulldown menu
Re: creating pulldown menu
- Subject: Re: creating pulldown menu
- From: Rob Jorgensen <email@hidden>
- Date: Tue, 12 Mar 2002 14:14:10 -0500
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 --
--
Later,
Rob Jorgensen
Ohio, USA
_______________________________________________
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.