Don't you have to send "close me" in time? How do you close a stack with a 
running script? 

Bob S


> On May 15, 2018, at 24:28 , AndyP via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> This is my go-to routine for quitting applications which seems always to get
> the job done.
> 
> //General quit routine
> 
> on quitMyProject
>   lock messages
>   -- stop using stacks
>   put the stacksInUse into myStacks
>   repeat for each line myStack in myStacks
>      stop using stack myStack
>   end repeat
>   -- stacks
>   put the openStacks into myStacks
>   put "message box,home,tool,Message Box,revTools,revMenubar" & comma & the
> short name of me into myDontClose
>   repeat for each line myStack in myStacks
>      if myStack is not among the items of myDontClose then close stack
> myStack
>   end repeat
>   -- messages
>   put the pendingmessages into myMsgs
>   repeat for each line myMsg in myMsgs
>      cancel item 1 of myMsg
>   end repeat
>   set the backdrop to none
>   close me
>   if the environment is not "development" then
>      quit
>   end if
> end quitMyProject
> 
> 
> 
> -----
> Andy Piddock 


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to