fixed a bug in the Bash script
added my Automator workflow