2012-10-12 17:47[[NSWorkspace sharedWorkspace] openFile:exePath withApplication:@"/Applications/Utilities/Terminal.app"]; 这个方法可以解决你所讲的问题,我有测试过了 2012-10-12 18:00上面那个方法会打开 终端程序,还可以用 以下这种方法实现 [NSTask launchedTaskWithLaunchPath:exePath arguments:[NSArray arrayWithObjects:exePath, exePath, @"/application", nil]]; 不过要当接到 NSTaskDidTerminateNotification 这个通知后,结果才会被改为 101