Name

NSScriptCommand — Mac OS X 10.0

Synopsis

This class represents a scripting statement in Cocoa’s scripting system. A scripting statement is something like “set bounds of front window to 1104, 360, 1280, 561}”. When an application receives the Apple Event corresponding to this script statement, it is translated into an instance NSScriptCommand.

image with no caption

@interface NSScriptCommand : NSObject <NSCoding>
                                  // Initializers
   - (id)initWithCommandDescription:(NSScriptCommandDescription *)commandDef;
                                  // Accessor Methods
   - (void)setReceiversSpecifier:(NSScriptObjectSpecifier *)receiversRef;
   - (NSScriptObjectSpecifier *)receiversSpecifier;
   - (void)setDirectParameter:(id)directParameter;
   - (id)directParameter;
   - (void)setScriptErrorNumber:(int)num;
   - (int)scriptErrorNumber;
   - (void)setScriptErrorString:(NSString *)str;
   - (NSString *)scriptErrorString;
   - (void)setArguments:(NSDictionary *)args;
   - (NSDictionary *)arguments;
                                  // Instance Methods
   - (NSScriptCommandDescription *)commandDescription;
   - (NSDictionary *)evaluatedArguments;
   - (id)evaluatedReceivers;
   - (id)executeCommand;
   - (BOOL)isWellFormed;
   - (id)performDefaultImplementation;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;

Subclasses

NSCloneCommand, NSCloseCommand, NSCountCommand, NSCreateCommand, NSDeleteCommand, NSExistsCommand ...

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.