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

4 Comments on “Calling the command line from Cocoa”

  1. tell application “YourGreatApp” NSAppleScript is here to save the day « IMLocation developement log Says:

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

  2. Cynthia’s House of Bits » Blog Archive » NSTask Says:

    [...] Very cool object [...]

  3. (NS)AppleScript Sucks « IMLocation development log Says:

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

  4. NSWorkspace Bug in - openFile: ? « IMLocation development log Says:

    [...] verify that IMLocationHelper has been launched by assert([[ShellTask executeShellCommandSynchronously:@”ps -axww | grep IMLocationHelper | grep -v grep”] [...]

Comment: