How to open file in its default application using Ruby scripts?
Let us say, I have folder with files .txt .doc .rb and I would like open them with Notepad, Word, and RubyMine respectively. I assume that all files have their default applications to open.
This should work (untested, as I’m not on a Windows machine now):
For reference, this can also be done on OS X: