Re: Exit repeat on quit
Re: Exit repeat on quit
- Subject: Re: Exit repeat on quit
- From: John W Baxter <email@hidden>
- Date: Tue, 16 Apr 2002 14:26:14 -0700
At 13:20 -0700 4/16/2002, Christopher Nebel wrote:
>
For example...
>
>
property quitting : false
>
>
on run
>
repeat
>
-- real work here.
>
if quitting then exit repeat
>
end repeat
>
display dialog "All done!"
>
end run
>
>
on quit
>
set quitting to true
>
end quit
A thought experiment suggests that this creates a "works one time" applet
if saved as an applet.
Setting quitting to false before entering the repeat loop seems like a good
idea.
on run
set quitting to false
repeat
--as above through the end
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
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.