Instance Method

handlePrintScriptCommand:

Handles the print AppleScript command by attempting to print the contents of the window (or its associated document, if any).

Declaration

- (id)handlePrintScriptCommand:(NSScriptCommand *)command;

Discussion

If there is a corresponding document and the window is the main window of the document, it forwards the print command to the corresponding document; otherwise, the window sends itself a print message. This may have been handled differently in versions of macOS prior to version 10.3.

See Also

Handling Script Commands

- handleCloseScriptCommand:

Handles the close AppleScript command by attempting to close the window (and its associated document, if any).

- handleSaveScriptCommand:

Handles the save AppleScript command by attempting to save the window (and its associated document, if any).