Initializes a newly allocated script instance from the passed source.
SDKs
- macOS 10.2+
- Mac Catalyst 13.0+
Framework
- Foundation
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 NSApple
.