• 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: Why doesn't this script run?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Why doesn't this script run? (From: Jeffrey Madson <email@hidden>)

  • Prev by Date: Why doesn't this script run?
  • Next by Date: Re: Why doesn't this script run?
  • Previous by thread: Why doesn't this script run?
  • Next by thread: Re: Why doesn't this script run?
  • Index(es):
    • Date
    • Thread