I want to save all the stacks that are open in a standalone. These are separate stack files, not substacks. What syntax needs to be changed to make the following work? if theKey is "Q" then put the stacks into saveUsAll repeat with x = 1 to the number of lines of saveUsAll save stack (line x of saveUsAll) end repeat quit end if Thanks, Mark