• 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: repeat dialog (was (no subject))
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: repeat dialog (was (no subject))


  • Subject: Re: repeat dialog (was (no subject))
  • From: Rob Stott <email@hidden>
  • Date: Thu, 29 Jul 2004 19:42:34 +0100

On 29 Jul 2004, at 01:19, Patrick Zittle wrote:

Hey Everyone! I was just wondering what the format for a if-then script? I would like to ask a display a question and if they insert anything but the answer it asks the question again. How can I do this?

...or you could do it without having to use an if/then...

set theAnswer to ""
repeat while theAnswer is not "Paris"
set theAnswer to text returned of (display dialog "What's the capital of France?" default answer "" buttons {"OK"} default button 1)
end repeat

Hope that helps

r.
_______________________________________________
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.


References: 
 >(no subject) (From: Patrick Zittle <email@hidden>)

  • Prev by Date: Re: Jamie Kahn Genet has sent you a 10% discount
  • Next by Date: RE: Saving/Reading RTFD Straight From AS with embedded attachments?
  • Previous by thread: if-then script (was: (no subject))
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread