Search code examples
macosshellapplescriptautomator

macOS automator - run shell script not working


So I have a shell script that outputs a format of 2021-01-15 02:20:33. It works in command line and AppleScript but doesn't work in automator. Not sure how to troubleshoot it i've done a few searches but nothing comes up that addresses this issue of a shell script not outputting value in automator.

works in:

  • terminal

enter image description here

  • applescript enter image description here

doesn't work in automator

  • As a shell script: it runs but the output is blank. But there is an output. enter image description here

  • As an Applescript on Automator - no output enter image description here

any help would be appreciated


Solution

  • The issue was automator didn't have full disk access permissions in privacy. After that was enabled the script worked as intended.