Reputation: 6545
I want to 'launch' file from Ruby on Mac OS. I.e., I want to write something like:
launch 'my.pdf'
...and have Preview (default program associated with PDF files) showing it.
Upvotes: 0
Views: 241
Reputation: 1364
You can call
exec 'open my.pdf'
to execute the osx shell command 'open' which will launch the associated application
Upvotes: 1