Re: creating pulldown menu
Re: creating pulldown menu
- Subject: Re: creating pulldown menu
- From: Rob Jorgensen <email@hidden>
- Date: Tue, 12 Mar 2002 18:10:30 -0500
On 3/12/02, Matt Binkowski commented:
sorry. i should have been more clear. that script does work. i'm using it as
a base for what you wrote earlier. i am having difficulty combining what you
wrote with mine.
sorry
matt
Here's what the script looks like, as exported from Script Debugger:
<
http://home.woh.rr.com/rjj/Search_Script.html>
Here's the same stuff (in all its list-mangled glory).
-- Begin Script - beware of line wraps --
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
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
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.