A command that retrieves a value or object from a scriptable object.
- macOS 10.0+
An instance of
NSGet 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
NSGet is executed, it evaluates the specified receivers, gathers the specified data, if any, and packages it in a return Apple event.
NSGet 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
NSGet or call its methods.