Re: Quitting an applet?
Re: Quitting an applet?
- Subject: Re: Quitting an applet?
- From: Cal <email@hidden>
- Date: Thu, 30 Nov 2000 12:32:46 -0500
Carl West <email@hidden> wrote:
I want my script to quit if the user presses a particular button. It's
not happening.
Minimal case:
on run
quit
display dialog "it didn't quit"
end run
As a classic applet, it always gets to the "it didn't quit" dialog. In
the Script Editor I get the slightly cryptic error "Could not run the
script because a script is running" which I take to mean that it can't
execute the quit command on the the Script Editor while it has a
script running.
How does one get an applet to stop executing and quit?
FYI, be aware that in Scripter, "quit" really will stop the script.
Cal