Instance Method

handleSave(_:)

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

Declaration

func handleSave(_ command: NSScriptCommand) -> Any?

Discussion

The default version invokes the same named method of the window's document, if the window is the one being saved.

See Also

Handling Script Commands

func handleClose(NSCloseCommand) -> Any?

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

func handlePrint(NSScriptCommand) -> Any?

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