make scripts Automator compatible