The script does not work on 10.10 because the equation for the OS
version does not work in the script: OS=/usr/bin/defaults read
/System/Library/CoreServices/SystemVersion ProductVersion | awk '{print
substr($1,1,4)}' if [[ "$OS" == "10.4" ]] then .....