On Mar 05, 2013, at 16:20, Jeffrey Madson <
email@hidden> wrote:
There are a lot of things I want to do with this script but the first is getting this part to function. Why don't I get a "you guessed it" and a couple of beeps if I select Asia?
default items {"Wayne"}) as string
______________________________________________________________________
try
set region_list to {"Wayne", "North America", "South America", "Europe", "Asia"}
set region to (choose from list region_list with prompt ("Choose Your Region:") default items {"Wayne"})
if region = false then error "User Cancelled."
if region as text = "Asia" then
beep
display dialog "you guessed it"
beep
end if
on error e number n
set e to e & return & return & "Num: " & n
tell me to set dDlg to display dialog e with title "ERROR!" buttons {"Cancel", "Copy", "OK"} default button "OK"
if button returned of dDlg = "Copy" then set the clipboard to e
end try
Personally I like more descriptive error messages.