Automator Shell Script Problem
I use Pandoc to convert Markdown files to PDFs. If I call Pandoc from the Terminal directly, to works fine. To automate the process, if in Automator I use the "Run Shell Script" command, I get the error shown in the screenshot.
If I use an AppleScript to run a Shell Script, it works fine, but it leaves a Terminal window open once it's completed.
How do I get Automator to run the Shell Script properly?
(If it matters, zsh shell throughout).