Quitting a standalone and saving open stacks

Sarah Reichelt sarah.reichelt at gmail.com
Sun Apr 20 16:13:17 EDT 2008


>  Here is the front script:
>
>  on shutdownRequest
>   put the openStacks into vOpenStacks
>   filter vOpenStacks with "*.ifw" -- checks to make sure it is a data stack
>   if the number of lines in vOpenStacks > 0 then
>     repeat for each line tLine in vOpenStacks
>       close stack tLine
>     end repeat
>   end if
>   pass shutdownRequest
>  end shutdownRequest
>
>  Any idea why the Windows standalone doesn't quit when finished like the Mac
> does?

I would guess that there are stacks which do not end with .ifw so are
not being closed. Add another check for the openStacks after saving &
closing your data stacks, and just close any left. Or leave out the
filter and loop through every stack, saving only those with .ifw but
closing them all.

HTH,
Sarah



More information about the use-livecode mailing list