• 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: Quitting a Stay-open Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quitting a Stay-open Application


  • Subject: Re: Quitting a Stay-open Application
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 20 May 2007 12:27:55 -0500

A good suggestion I should keep in mind, however ...

Right after posting, I noticed that the idle handler contained repeat loop that I had forgotten to remove when I rewrote the script in an idle handler. I removed the loop and now the application quits properly. (I also had to make prevCount a global variable. I prefer not to use globals, however.)

The question now becomes: If quit can't interrupt a repeat loop, then why does the "Quitting..." dialog even appear?

BTW, what happened to the "DevDocPDF" files that were once available from ADC. The latest one I have is "Mar07DevDocPDF" which is damaged. When I tried to download the latest, I couldn't find it.

On May 20, 2007, at 11:56 AM, Peter Bunn wrote:


Luther:

'tell me to quit' is the key here... you may prefer to use it in a
different way.

Peter B.

--

on reopen
	tell me to activate
	display dialog "Quit Now...?" buttons {"Quit"} default button 1
	set user_response to button returned of result as text
	if user_response is "Quit" then
		tell me to quit
	end if
end reopen

-----

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Quitting a Stay-open Application
      • From: Philip Aker <email@hidden>
References: 
 >Re: Quitting a Stay-open Application (From: Peter Bunn <email@hidden>)

  • Prev by Date: Re: Quitting a Stay-open Application
  • Next by Date: Re: Filemaker 8.5 stored applescript problem
  • Previous by thread: Re: Quitting a Stay-open Application
  • Next by thread: Re: Quitting a Stay-open Application
  • Index(es):
    • Date
    • Thread