Instance Property

objectSpecifier

Returns an object specifier for the document.

Declaration

@property(readonly, strong) NSScriptObjectSpecifier *objectSpecifier;

Return Value

The document object specifier.

Discussion

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

Scripting

- handleCloseScriptCommand:

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

- handlePrintScriptCommand:

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

- handleSaveScriptCommand:

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

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