Added an applescript file that will run as an app for Mac OS X users. It creates the /var/lock file and correctly runs the script.sh