• 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: Can't quit from Dock or cmd-Q
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't quit from Dock or cmd-Q


  • Subject: Re: Can't quit from Dock or cmd-Q
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 24 Oct 2002 11:55:11 -0700

I just figured out a very clunky workaround that lets you quit from the dock
or command-Q. I don't think this should be necessary:



global quitNow

set quitNow to false

on quit -- intercepts the Quit
display dialog "quitting"
set quitNow to true
continue quit -- ignored
end quit

repeat 100000 times
if quitNow then error number -128 -- THIS quits
beep
end repeat

--
Paul Berkowitz



> From: Paul Berkowitz <email@hidden>
> Date: Thu, 24 Oct 2002 11:17:29 -0700
> To: Applescript-Users <email@hidden>
> Subject: Can't quit from Dock or cmd-Q
>
> OS 10.2.1 AS 1.9
>
> I can't quit a repeat loop from a non-stay-open script application by
> selecting Quit in the app's icon in the Dick, or via Quit in the application
> menu or command-Q.
>
> command-. (command-period) works fine. Force-quitting works. Has it always
> been the case that cmd-Q doesn't work, or is it new in OS 10.x?
>
> Using a 'quit' handler, the 'quit' signal IS intercepted by the quit
> handler, and it does everything requested until it gets to the 'continue
> quit' line. It can't execute that. (In all these cases, you get a slow
> sinning black 7 white beachball, and the script just continues.)
>
> Try this from a non-stay-open application running by double-clicking it (NOT
> in a script editor):
>
>
> on quit
> display dialog "quitting"
> --error number -128
> continue quit
> end quit
>
> repeat 100000 times
> beep
> end repeat
>
>
>
> Go to the app's icon in the dock and select Quit. You get the display
> dialog, but when you click OK, it goes back to strangulated beeping and
> doesn't quit. The problem is not with the actual 'continue quit' command:
> comment it out and uncomment 'error number -128'. Same thing.
>
> Now remove the quit handler completely. Same thing
>
> Then try any of the versions , but press command-. That quits.
>
> This is a bad bug (I think), but where exactly is the bug? In the code that
> makes script applications? Does any of this happen in OS 9 (using cmd-Q)?
_______________________________________________
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: 
 >Can't quit from Dock or cmd-Q (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: question
  • Next by Date: rename a disk - Mac OS 9
  • Previous by thread: Can't quit from Dock or cmd-Q
  • Next by thread: Re: Can't quit from Dock or cmd-Q
  • Index(es):
    • Date
    • Thread