Instance Property


Returns an object specifier for the document.


var objectSpecifier: NSScriptObjectSpecifier { get }

Return Value

The document object specifier.


An object specifier represents an AppleScript reference form, which is a natural-language expression such as words 10 through 20 or front document. During script processing, an object contained by a document (such as the second paragraph or the third rectangle) may need to specify its container (the document).

See Also


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 lastComponentOfFileName: String

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).