Switched over to applescript instead of shell