NSScriptObjectSpecifier — Mac OS X 10.0
This is an abstract class for classes of objects known as
. An object specifier is a
representation of a scripting language reference form that is used to
identify objects in relation to container objects. Object specifiers
are used to represent the portions of an AppleScript used to identify
the object that is the target of a script command. For example, in
get word 3 of paragraph 15 of the front document there are three object specifiers:
paragraph 15, and
Object specifiers are nested, where more general specifiers are
evaluated to provide an evaluation context for their nested child
specifier. In the example, the specifier
front paragraph is evaluated first to provide a container in
which the specifier
paragraph 15 can be evaluated.
The scripting system evaluates object specifiers in this way to
determine what object in the application should be the recipient of
the command being executed.
The Foundation framework implements several subclasses of
NSScriptObjectSpecifier. These subclasses
implement object specifiers that represent the various AppleScript
language constructs (reference forms) used to identify the targets of
@interface NSScriptObjectSpecifier : NSObject <NSCoding>
- (id)initWithContainerClassDescription:(NSScriptClassDescription ...