Re: Why doesn't this script run?
Re: Why doesn't this script run?
- Subject: Re: Why doesn't this script run?
- From: Brian Christmas <email@hidden>
- Date: Wed, 06 Mar 2013 09:30:19 +1100
G'day Jeffrey
Try this
set the region_list to {"North America", "South America", "Europe", "Asia"} set the region to (choose from list region_list with prompt ("Choose Your Region:") default items {"Wayne"}) as string if the region is false then error number -128 if the region is "Asia" then beep display dialog "you guessed it" beep end if Regards
Santa
On 06/03/2013, at 9:20 AM, Jeffrey Madson < email@hidden> wrote: set the region_list to {"North America", "South America", "Europe", "Asia"} set the region to ¬ (choose from list region_list ¬ with prompt ("Choose Your Region:") ¬ default items {"Wayne"}) as string if the region is false then error number -128 return region if (text returned of "Asia") is "Asia" then beep display dialog "you guessed it" beep end if |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden