A command that clones one or more scriptable objects.
- macOS 10.0+
An instance of
NSClone clones the specified scriptable object or objects (such as words, paragraphs, images, and so on) and inserts them in the specified location, or the default location if no location is specified. The cloned scriptable objects typically correspond to objects in the application, but aren’t required to. This command corresponds to AppleScript’s
NSClone is part of Cocoa’s built-in scripting support. It works automatically to support the
duplicate command through key-value coding. Most applications don’t need to subclass
NSClone or invoke its methods.
When an instance of
NSClone is executed, it clones the specified objects by sending them