Instance Method


Initializes and returns a newly allocated instance of NSScriptCommandDescription.


- (instancetype)initWithSuiteName:(NSString *)suiteName commandName:(NSString *)commandName dictionary:(NSDictionary *)commandDeclaration;



The name of the suite (in the application’s scriptability information) that the command belongs to. For example, "AppName Suite".


The name of the script command that this instance describes.


A command declaration dictionary of the sort that is valid in script suite property list files. This dictionary provides information about the command such as its argument names and types and return type (if any).

Return Value

The initialized command description instance. Returns nil if the event constant or class name for the command description is missing; also returns nil if the return type or argument values are of the wrong type.


This method registers self with the application’s global instance of NSScriptSuiteRegistry and also registers all command arguments with the registry.

See Also