Invoking external shell application through RubyCocoa

Posted by Shyam on Stack Overflow See other posts from Stack Overflow or by Shyam
Published on 2010-04-07T12:09:53Z Indexed on 2010/04/07 12:13 UTC
Read the original article Hit count: 317

Filed under:
|
|
|
|

Hi,

How would I invoke an external application through the RubyCocoa bridge? I read something about NSTask, yet I have no idea how this should be translated in RubyCocoa. My goal is to have an IB_action to trigger a method which will run a terminal application with some parameters, i.e. ls -p $mydir, where mydir comes from an IB_outlet such as an Textfield. Any directions or help would be greatly appreciated!

© Stack Overflow or respective owner

Related posts about rubycocoa

Related posts about cocoa