Closed todd-a-jacobs closed 5 years ago
You need to give something authorisation. I’m not on Mojave yet so I’m not entirely sure what it needs to be, but it might just be the Terminal, or bash
, or brew
. You were supposed to get a system dialog.
Go to System Preferences → Security & Privacy → Automation
to grant permission.
Amethyst is already installed, and already has control permissions:
What was missing was system events permissions for Terminal. System Events access is turned off by default, and this being the issue is not at all obvious from Homebrew's output. Granted that the tool throwing the error is oascript, if this is a known problem then it needs to be either:
There's nothing in the error message or other output clearly tying this to Terminal, so the fact that Homebrew doesn't handle this more gracefully is (in my opinion) still a bug. YMMV.
This certainly resolves the problem, and allows a clean uninstall of Amethyst. However, formulae that rely on oascript (and perhaps other newly-locked aspects of Mojave) really ought to trap those errors better.
Amethyst is already installed, and already has control permissions What was missing was system events permissions for Terminal.
Which is exactly what I said.
if this is a known problem
It was a problem for you. Mojave is the one handling this and it should have shown you a dialog. A ton of casks rely on AppleScript on uninstall
, and yet this isn’t a common issue. If Mojave didn’t ask for your permissions, either you had denied it before or it was a bug with macOS. If you dislike the system as is (and it is indeed deeply flawed), you need to complain to Apple.
formulae
Casks. They’re different things.
really ought to trap those errors better.
The error was indicated just fine. Had you done a web search for the message, you’d immediately have found the cause and the fix. There’s only so much handholding we can do.
General troubleshooting steps
--force
and the issue is still present.brew update-reset && brew update
and retried my command.brew doctor
, fixed as many issues as possible and retried my command.Description of issue
Amethyst can't be removed or reinstalled. It reports:
Command that failed
Output of command with
--force --verbose --debug
Output of
brew cask doctor
Output of
brew tap