I need to run some WolframScripts on a schedule so I am trying to set up MacOS Automator to run them but I am having issues. Any help would be greatly appreciated.
Here is what I have so far:
send-test-email.wls: #!/usr/bin/env wolframscript Needs["ww`"]; sendGmail["mike.besso@gmail.com", "test subject", "test body"];
This script works (after making it executable of course).
Since I could not figure out how to kick this script off with Automator, I created a shell script which I can kick off with Automator:
send-test-email:
#!/bin/zsh
wolframscript -file send-test-email.wls
This works as well from a terminal.
But, when I try to "Run Shell Script" from Automator, I get an error:

I spent an hour searching the web and learned:
- I might be able to use chrontab, but that seems more complicated than what I need
- A 2011 discussion on this topic is no longer available
- Many years ago, there was an Automator add-in for Wolfram, but I cannot find it
Have a great week.