Problem with automator folder action changing file ownership
I've written an automator script that accepts a file from a folder action and changes ownership of that file. (My printer sends scans to my Mac that are owned by root). I have a shell script that works fine in terminal, but won't work in the automator workflow. Attached is the workflow as well as the error message. The workflow doesn't seem to have an error, but it doesn't work either!
iMac 24″, macOS 11.4