It took me a long time to get arara to work from within TeXworks on OS X 10.14 or 10.15. I would get two errors:
/usr/local/texlive/2019/texmf-dist/scripts/arara/arara.sh: line 8: kpsewhich: command not found
Unable to access jarfile
I eventually found the problems: the system path was not inherited by the sh script and the scriptname variable contains the file extension (so jar was getting set to arara.sh.jar instead of arara.jar).
I fixed it by adding:
PATH=/Library/TeX/texbin:$PATH
To the first line of the arara.sh file and then I changed
jar="$scriptname.jar"
to
jar="arara.jar"
Once I made those two changes, it worked like a charm.
Is this a known issue?
Edit: One thing to add, if I call arara directly from terminal, it works correctly without modifications to the sh file. I only have issues when calling it from TeXworks.
shon your system? For example, what doessh --versiongive?arara. I don't know how Macs are set up now. There's no reason you should have to make those changes. Especially, the second one sounds very odd indeed.echo $PATHandwhich kpsewhichreturn on your system?