简体   繁体   中英

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

在此处输入图像描述

  • applescript 在此处输入图像描述

doesn't work in automator

  • As a shell script: it runs but the output is blank. But there is an output. 在此处输入图像描述

  • As an Applescript on Automator - no output 在此处输入图像描述

any help would be appreciated

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM