So I am trying to write an .sh file that will be executable, this is how I\'m currently writing it:
Writer output = null; try { output = new BufferedWrite
This answer I wrote for the question how do I programmatically change file permissions shows a chmod example via a native call using jna, which should work on Mac OS X.