On windows:
1) Basically download this compiler:
tyrutils-ericw tools
2) And this GUI for compilation:
ne_q1spCompilingGui103
3) Compiling with this GUI tool is self explanatory, but here are some settings I'm using atm:
GUI - Settings
You should be able to figure out what is what.
Mac script should be trivial to write. If you take a look at the compiler's documentation, you should be able to do it yourself. If not, tomorrow I can see what we can do for you.