Mixing Applescript and Bash