Use NSTask. You can find some simple examples of using it here: http://borkware.com/quickies/one?topic=nstask
Calling a Terminal Command from a Cocoa Application [duplicate]
Question
- I created a Cocoa Mac OSX application in XCode
- Added a Button to the view
- While running the application, if i click the Button
- A terminal command for example "ffprobe abcd.avi" should be called and the results should be passedback to the cocoa application
Is that possible?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow