Re: repeat dialog (was (no subject))
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>) |