<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>how quit ?</title></head><body>
<div>Hi,</div>
<div><br></div>
<div>I've a mainstack with many substacks (on Mac)</div>
<div>to quit, I've written the following code (called by a menupick
handler) :</div>
<div><br></div>
<div><font face="Geneva" size="+2" color="#000000">on doquit<br>
&nbsp; put the openStacks into tstacks<br>
&nbsp; put the number of lines of tstacks into totLines<br>
&nbsp; repeat with x = totLines down to 1<br>
&nbsp;&nbsp;&nbsp; put line x of tstacks into tLine<br>
&nbsp;&nbsp;&nbsp; if tLine contains &quot;Rev&quot; then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; delete line x of tStacks<br>
&nbsp;&nbsp;&nbsp; end if<br>
&nbsp; end repeat<br>
&nbsp; filter tStacks with &quot;*?&quot;<br>
&nbsp; repeat for each line L in tStacks<br>
&nbsp;&nbsp;&nbsp; save stack L<br>
&nbsp;&nbsp;&nbsp; close stack L<br>
&nbsp; end repeat<br>
end doquit</font></div>
<div><br></div>
<div>In rev, it works fine</div>
<div>in a standalone, nothing happens. I can't quit. Why ?</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
</body>
</html>