Re: Can't quit from Dock or cmd-Q
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: Fri, 25 Oct 2002 18:09:46 -0700
On 10/25/02 5:45 PM, "Paul Berkowitz" <email@hidden> wrote:
>
on quit
>
set _stop to true -- optional due to ErrorHandler
>
my ErrorHandler("", -128) -- corrected
>
-- continue quit -- makes no difference
>
end quit
Actually, I didn't get that quite right. Since there is an
if _stop then error number -128
at the top of my two main repeat loops, _that_ leads to the ErrorHandler
anyway with the cleanup commands and a final error number -128 to really
quit.
I don't call the ErrorHandler from the quit handler - that makes it go
around 3 times, what with all the forced errors involved.
--
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.