Class

NSPositionalSpecifier

Instances of NSPositionalSpecifier specify an insertion point in a container relative to another object in the container, for example, before first word or after paragraph 4. The container is specified by an instance of NSScriptObjectSpecifier. NSPositionalSpecifier objects commonly encapsulate object specifiers used as arguments to the make (create) and move commands and indicate where the created or moved object is to be inserted relative to the object represented by an object specifier.

Overview

Invoking an accessor method to obtain information about an instance of NSPositionalSpecifier causes the object to be evaluated if it hasn’t been already.

You don’t normally subclass NSPositionalSpecifier.

Nested Types

NSInsertionPosition

The following constants are defined by NSPositionalSpecifier to specify an insertion position.

Symbols

Initializing a positional specifier

init(position: NSPositionalSpecifier.InsertionPosition, objectSpecifier: NSScriptObjectSpecifier)

Initializes a positional specifier with a given position relative to another given specifier.

Accessing information about a positional specifier

var insertionContainer: Any?

Returns the container in which the new or copied object or objects should be placed.

var insertionIndex: Int

Returns an insertion index that indicates where the new or copied object or objects should be placed.

var insertionKey: String?

Returns the key that identifies the relationship into which the new or copied object or objects should be inserted.

var insertionReplaces: Bool

Returns a Boolean value that indicates whether evaluation has been successful and the object to be inserted should actually replace the keyed, indexed object in the insertion container.

var objectSpecifier: NSScriptObjectSpecifier

Returns the object specifier specified at initialization time.

var position: NSPositionalSpecifier.InsertionPosition

Returns the insertion position specified at initialization time.

func setInsertionClassDescription(NSScriptClassDescription)

Sets the class description for the object or objects to be inserted.

Evaluating a positional specifier

func evaluate()

Causes the receiver to evaluate its position.

Constants

InsertionPosition

The following constants are defined by NSPositionalSpecifier to specify an insertion position.

Relationships

Inherits From

Conforms To