class func run(URL, arguments: [String], terminationHandler : ((Process) -> Void)?) -> Process
Creates and runs a task with a specified executable and arguments.
Availability 有効性
Technology
init()
An initialized process object with the environment of the current process.
If you need to modify the environment of a process, use alloc and init, and then set up the environment before launching the new process. Otherwise, just use the class method launched
to create and run the process.
class func run(URL, arguments: [String], terminationHandler : ((Process) -> Void)?) -> Process