Instance Property

environment

Sets the environment for the receiver.

Declaration

var environment: [String : String]? { get set }

Parameters

environmentDictionary

A dictionary of environment variable values whose keys are the variable names.

Discussion

If this method isn’t used, the environment is inherited from the process that created the receiver. This method raises an NSInvalidArgumentException if the receiver has already been launched.

See Also

Returning Task Information

var arguments: [String]?

Sets the command arguments that should be used to launch the executable.

var currentDirectoryPath: String

Sets the current directory for the receiver.

Deprecated
var launchPath: String?

Sets the receiver’s executable.

Deprecated
var processIdentifier: Int32

Returns the receiver’s process identifier.

var standardError: Any?

Sets the standard error for the receiver.

var standardInput: Any?

Sets the standard input for the receiver.

var standardOutput: Any?

Sets the standard output for the receiver.