Share via


NSScriptCommandDescription.Create Method

Definition

Creates a new NSScriptCommandDescription with the specified suite name, command name, and command declaration.

public static Foundation.NSScriptCommandDescription Create(string suiteName, string commandName, Foundation.NSScriptCommandDescriptionDictionary commandDeclaration);
static member Create : string * string * Foundation.NSScriptCommandDescriptionDictionary -> Foundation.NSScriptCommandDescription

Parameters

suiteName
String

The name of the suite to which the command belongs.

commandName
String

The name of the command.

commandDeclaration
NSScriptCommandDescriptionDictionary

A dictionary containing the command declaration.

Returns

A new NSScriptCommandDescription instance.

Exceptions

Thrown when suiteName or commandName is null or empty, or when the command declaration is malformed.

Thrown when commandDeclaration is null.

Applies to