
▲ 1 r/shortcuts
Operation not permitted for some but not all shell scripts
I have two shortcuts that both run a shell script: one toggles between showing and hiding hidden files in Finder and another one writes the file directory of an external hard drive into a txt file.
Both run smoothly within the Shortcuts app. However, if I invoke them from Spotlight, the first one runs successfully but the second one (that one that writes the file directory of an external HD into a txt file) fails. It says "operation not permitted". I have given full disk access to the Finder app in Settings. I have searched in Google but none of the solutions provided works for me. Anyone knows how to make it work? Thanks!
u/AlmostSurely1001 — 14 hours ago