An instance of
NSCloseCommand closes the specified scriptable object or objects—typically a document or window (and its associated document, if any). The command may optionally specify a location to save in and how to handle modified documents (by automatically saving changes, not saving them, or asking the user).
- macOS 10.10+
NSCloseCommand is part of Cocoa’s built-in scripting support. It works automatically to support the
close command through key-value coding. Most applications don’t need to subclass
NSCloseCommand or call its methods.