Is it possible to tune OS X so it will execute exe files without having to prefix the command line with wine

wine

I'm writing cross-platform scripts that are executing utilities and some of them are windows executables.

I would like to find a solution that would not require me to prepend the command line with wine when I run from OS X.

I know that on Windows it is possible to define executable files based on file extension but I would like to know if this is possible to do on OS X and how.

I am open to suggestions 😉

Best Answer

How about setting all .exe files to "open with" wine?