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 […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: