{"identifier":9517,"topic":"","name":"close 2","text":"The<code> close [<i>document<\/i> {in|with}] <i>application <\/i><\/code>command closes the named running document, application,  or desk accessory.   (The words <code>in <\/code>and<code> with <\/code>are synonymous.) <br><br>\n\n <b>Note: <\/b>This command works only with Apple event-aware applications running under System 7 on the same Macintosh as HyperCard. <br><br>\n\n If the document or application isn\u2019t running,<code> the result <\/code>is set to<code> No such document <\/code>or<code> No such application<\/code>  as appropriate. <br>\n<br>\nThe form<code> close <i>application<\/i> <\/code>sends a <code>quit <\/code>Apple event, while the form <code> close <i>document<\/i> {in|with} <i>application <\/i><\/code> sends a<code> clos <\/code>Apple event.  <br><br>\n\n All Apple event-aware applications support the<code> quit <\/code>Apple event, but they don\u2019t all support<code> clos. <br><br>\n\n <\/code>The<code> close <i>externalWindow<\/i> <\/code>command closes an external window\u2014a palette or other window displayed by an external command or external function\u2014and removes it from the window list. <br>\n","related":{"3428":"Commands sent automatically","39797":"hide","35844":"moveWindow","41996":"open file","42410":"open printing","42512":"open report printing","44420":"print","45683":"read","45965":"reset","16789":"sizeWindow","6031":"Where messages are sent initially","51002":"write"},"examples":"","demo":"","debug":{"9":["The close [document "],"10":["The form close appli"]}}