Calling the command line from Cocoa

This article has been updated and moved here.

Explore posts in the same categories: Cocoa, MacOSX, NSTask, Objective-C, Programming, Sample Code

3 Comments on “Calling the command line from Cocoa”


  1. [...] TO ADD: this is a better way to call the command line, or embed snippets of a different language in cocoa. [...]


  2. [...] anywhere else. There is a workaround, but the cure is worse then the disease. You can use an NSTask to have the osascript program interpret the script for you. This won’t block your thread, but [...]


Comment: