Instance Property

lastComponentOfFileName

Sets the document name to the given string in terms of the scripting name property (the name a script writer would use to specify the document in a script).

Declaration

var lastComponentOfFileName: String { get set }

Parameters

str

The scripting name of the document.

Discussion

Note that this name may be different than the name used in fileURL.

See Also

Scripting

func handleClose(NSCloseCommand) -> Any?

Handles the Close AppleScript command by attempting to close the document.

func handlePrint(NSScriptCommand) -> Any?

Handles the Print AppleScript command by attempting to print the document.

func handleSave(NSScriptCommand) -> Any?

Handles the Save AppleScript command by attempting to save the document.

var objectSpecifier: NSScriptObjectSpecifier

Returns an object specifier for the document.