0

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!

apaderno
  • 28,547
  • 16
  • 75
  • 90
Shyam
  • 2,357
  • 8
  • 32
  • 44

1 Answers1

1

Usually it is invoked using ` quotes and #{} structure for variable

`ls -p #{mydir}`
fl00r
  • 82,987
  • 33
  • 217
  • 237