Title: how quit ?
Yves,
 
Any reason you can't do:
 
on doquit
  quit
end doquit
 
???
 
Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/
 
----- Original Message -----
From: yves COPPE
Sent: Wednesday, April 17, 2002 9:44 AM
Subject: how quit ?

Hi,

I've a mainstack with many substacks (on Mac)
to quit, I've written the following code (called by a menupick handler) :

on doquit
  put the openStacks into tstacks
  put the number of lines of tstacks into totLines
  repeat with x = totLines down to 1
    put line x of tstacks into tLine
    if tLine contains "Rev" then
      delete line x of tStacks
    end if
  end repeat
  filter tStacks with "*?"
  repeat for each line L in tStacks
    save stack L
    close stack L
  end repeat
end doquit

In rev, it works fine
in a standalone, nothing happens. I can't quit. Why ?
-- 

Reply via email to