I have a simple applescript that takes a file we’ve received from our network photocopier and changes the file ownership to the current user. Hazel then renames the file.
set thePath to the POSIX path of theFile do shell script "chown <username> " & thePath password "<password>" with administrator privileges
This ran fine in versions in OS X prior to Mojave but now hazelworker is always prompting me for my password when it runs making it much less useful. Any suggestions? I have already tried adding hazel to accessibilty and full disk access in security & privacy