Can't quit from Dock or cmd-Q
Can't quit from Dock or cmd-Q
- Subject: Can't quit from Dock or cmd-Q
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 24 Oct 2002 11:17:29 -0700
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)?
--
Paul Berkowitz
_______________________________________________
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.