Mac Developer Library

Developer

Foundation Framework Reference NSCreateCommand Class Reference

Options
Deployment Target:

On This Page
Language:

NSCreateCommand

An instance of NSCreateCommand creates the specified scriptable object (such as a document), optionally supplying the new object with the specified attributes. This command corresponds to AppleScript’s make command. More...

Inheritance


Conforms To


Import Statement


import Foundation @import Foundation;

Availability


Available in OS X v10.0 and later.
  • Returns the class description for the class that is to be created.

    Declaration

    Swift

    var createClassDescription: NSScriptClassDescription { get }

    Objective-C

    @property(readonly, retain) NSScriptClassDescription *createClassDescription

    Return Value

    The class description for the class that is to be created.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.

  • Returns a dictionary that contains the properties that were specified in the make Apple event command that has been converted to this NSCreateCommand object.

    Declaration

    Swift

    var resolvedKeyDictionary: [NSObject : AnyObject] { get }

    Objective-C

    @property(readonly, copy) NSDictionary *resolvedKeyDictionary

    Return Value

    A dictionary that contains the properties that were specified in the make Apple event script command that has been converted to this NSCreateCommand object.

    Discussion

    The keys in the returned dictionary are the names of properties (attributes or relationships, in the script suite) that have been specified for the command, and the corresponding values in the dictionary are the values that those properties should take. The required and optional arguments for the make command are specified in the core suite definition, NSCoreSuite.scriptSuite.

    Import Statement

    import Foundation

    Availability

    Available in OS X v10.0 and later.