NSScriptCommand

NSScriptCommand Mac OS X 10.0

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.

figs/cocn_1394.gif

@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, NSGetCommand, NSMoveCommand, NSQuitCommand, NSSetCommand



    Part II: API Quick Reference
    Chapter 13. Foundation Classes