• 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: Exit repeat on quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Exit repeat on quit (From: Christopher Nebel <email@hidden>)

  • Prev by Date: dd: AppleWorks 6 paint: lasso?
  • Next by Date: Re: Erase the contents of a text file?
  • Previous by thread: Re: Exit repeat on quit
  • Next by thread: Photoshop AppleScript support released!
  • Index(es):
    • Date
    • Thread