About MIME: is it possible to always "Open With“ text file with a a command line script?

Solution 1:

You would not only have to create an app, but you’d have to be able to assign it to open files of that type. That seems like it would outside the ability of most users, so I’m going to disqualify it as a “solution”.

The only option that I can think of would be to use Keyboard Maestro to assign a keyboard shortcut to open a selected file in Finder with the shell script.

The precise way to do this can be found by asking at http://forum.keyboardmaestro.com/.