{"identifier":46772,"topic":"Commands","name":"save","text":"<code>save <\/code>[<code>this<\/code>]<code> stack as <\/code>[<code>stack<\/code>]<code> <i>fileName<\/i> save stack <i>fileName<\/i> \u00ac      as <\/code>[<code>stack<\/code>]<code> <i>fileName<\/i> <\/code> The<code> save <\/code>command saves a copy of a stack. It\u2019s the same as choosing Save A Copy from the File menu, but it doesn't display a directory dialog box. Use<code> save <\/code>when you don't want a dialog box to interrupt a handler. <br><br>\n\n The form<code> save <\/code>[<code>this<\/code>]<code> stack <\/code>saves a copy of the current stack. <br>\n<br>\nIf the specified stack already exists, HyperCard sets the value of<code> the result<\/code> to<code> \"Couldn\u2019t duplicate stack.\"<\/code> You can test whether HyperCard saved the stack successfully as follows: <br><br>\n\n <code><pre>save this stack as \"My Copy\"\nif the result is not empty then ...<\/pre><\/code> <br>\n","related":{"62431":"result"},"examples":"save this stack as stack \"My Copy\" \n\nsave stack as stack \"Copy of\" && the short name of this stack\n\nsave stack \"Home\" as stack \"Copy of Home\"\nif the result is not empty then ...","demo":"","debug":{"9":["save [this] stack as"],"10":["If the specified sta"]}}