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.
Figured this out… but it took a bit more caffeine. It would seem that Automator does not search the path. We can argue the wisdom of this. I can see both sides of the argument.
Nonetheless, it would be great if the documentation (on Apple’s end this time) was a bit clearer.
A guess. Automator does not create an interactive shell so .zshrc is not sourced, so wolframscript is not in the PATH. Try adding source ~/.zshrc to the Automator script before executing the shell script.
Thank you for your suggestion. You are, of course, correct. But, there is a but. Automator does not keep the path setting from the .zsh (or .zshrc). From what I can tell, I’m not the only one who has run into this.
Following your lead, I can put the following at the top of the “Run Shell Script”: