Class

NSGetCommand

A command that retrieves a value or object from a scriptable object.

Declaration

@interface NSGetCommand : NSScriptCommand

Overview

An instance of NSGetCommand gets the specified value or object from the specified scriptable object: for example, the words from a paragraph or the name of a document.

When an instance of NSGetCommand is executed, it evaluates the specified receivers, gathers the specified data, if any, and packages it in a return Apple event.

NSGetCommand is part of Cocoa’s built-in scripting support. It works automatically to support the get command through key-value coding. Most applications don’t need to subclass NSGetCommand or call its methods.

For information on working with get commands, see Getting and Setting Properties and Elements in Cocoa Scripting Guide.

Relationships

Inherits From

See Also

Script Commands

NSScriptCommand

A self-contained scripting statement.

NSQuitCommand

A command that quits the specified app.

NSSetCommand

A command that sets one or more attributes or relationships to one or more values.

NSMoveCommand

A command that moves one or more scriptable objects.

NSCreateCommand

A command that creates a scriptable object.

NSDeleteCommand

A command that deletes a scriptable object.

NSExistsCommand

A command that determines whether a scriptable object exists.

NSCloneCommand

A command that clones one or more scriptable objects.

NSCountCommand

A command that counts the number of objects of a specified class in the specified object container.

NSCloseCommand

A command that closes one or more scriptable objects.