Hello Mac Users,
I found a fix for the issue. As you all know the texteditor that comes with standard mac does not let you save the .groovy files properly.
To fix this, first of all download this other text editor called Text Mate which will allow you to do this with a special plugin installed.
Download for TextMate is found here:
http://macromates.com
After this go on this website:
http://groovy.codehaus.org/TextMate
press on available from github to download the plugin. Follow the instructions on the screen. Install the bundle, then when you are done simply get the source from a script, paste it into the textbox in TextMate, save as scriptname.groovy directly under the scripts folder and voila!