Contents

init(source:)

Initializes a newly allocated script instance from the passed source.

Declaration

init?(source: String)

Parameters

  • source:

    A string containing the source code of a script.

Return Value

The initialized script object, nil if an error occurs.

Discussion

This method is a designated initializer for NSAppleScript.

See Also

Initializing a Script