• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: creating pulldown menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: creating pulldown menu
      • From: Matt Binkowski <email@hidden>
References: 
 >creating pulldown menu (From: Matt Binkowski <email@hidden>)

  • Prev by Date: Re: Question: Arrays and Matrixes
  • Next by Date: RE: Combo Box?
  • Previous by thread: creating pulldown menu
  • Next by thread: Re: creating pulldown menu
  • Index(es):
    • Date
    • Thread