Re: when quit is not quit
Re: when quit is not quit
- Subject: Re: when quit is not quit
- From: Jon Pugh <email@hidden>
- Date: Fri, 2 Nov 2001 21:36:38 -0800
At 9:12 PM -0800 11/2/2001, Jon Pugh wrote:
>
Try this instead:
Try this instead:
on run
try
errorThrower("test message", -1)
beep
display dialog "No way, eh?"
delay 1
on error m number n
beep
activate
display dialog ("error number " & n & ":" & return & m & return) buttons "Quit" default button "Quit" with icon stop
quit -- forgot this part
end try
end run
Because, in addition to being a message that the applet shell sends to you, it can be used as a command also, directly contradicting my other point, as I realized immediately when I read it.
However, it's not an operation that quits immediately. It just tells the applet shell to quit the next time AppleScript returns, since it is the program calling OSAExecute or whatever and it can't quit until AppleScript returns.
I'll give my harried proof reader a sound lashing though, just on principle.
Jon