Blog Archives

Mojave: not authorized to send Apple events

If you’re suffering from error messages like the one above after upgrading to Mojave, welcome to macOS’s new “User Data Protections”. In this post we’ll explain what they are and how to deal with them.

That error’s produced when the app your script is targeting (in this example, System Events) has been denied access to one of the areas now protected in Mojave.

Here’s the list of places which are no longer accessible programmatically without user approval on 10.14:

If the app you’re targeting in your script – or the script runner itself – is trying to access any of those 12 locations, you’ll likely either get the error shown at the top of this post, or some other failure. 

The official way of dealing with this is to add the application to System Preferences’ new ‘Full Disk Access’ section in the Privacy pane:

At least that’s the theory, but you might find that you’ve tried that and things are still not working. If that happens, you can “start over from scratch” by resetting the access permissions to default. 

In Terminal, try 

tccutil reset AppleEvents; tccutil reset SystemPolicyAllFiles

After you’ve done that, the next time you run that script you should get an authorization dialog like this: 

Alternatively, just go right ahead and add the app with the ‘+’ button in System Preferences.

Enjoy the resumption of normal service 🙂

no sound or volume after upgrading

A problem that seems to be affecting quite a few users after the Mountain Lion upgrade is loss of sound in iTunes, QuickTime and other apps. Some people are reporting that the Volume control is greyed out or won’t move.

The resolution here is to quit and resart the coreaudio process. To do so:

1. Open Activity Monitor.app (Applications > Utilities > Activity Monitor.app)

2. Select ‘All Processes’ from the drop down menu next to the search bar (called ‘Filter:’) and type in ‘coreaudio’.

3. Select the process name and click the ‘Quit Process’ button at the top. Chose ‘Quit’ or ‘Force Quit’ from the resulting dialogue box.

The coreaudio process will automatically restart itself (if you look closely at the PID number in Activity Monitor you’ll notice it changes after you hit ‘Quit’) and your sound problems should be solved. However, if you find that this procedure only partially solves the problem or doesn’t work for you, also try this:

4. Open Terminal.app (Applications/Utilities/Terminal.app) and copy/paste this command into the Terminal window

rm /Library/Preferences/com.apple.soundpref.plist

then press ‘return’ on your keyboard.

5. Restart your mac and test.

6. Still not working? Check your audio configuration here:

/Applications/Utilities/Audio MIDI Setup.app.

Make sure the window has the title Audio Devices, and click ‘Built in Output’ in the sidebar. Are any of the boxes under ‘Mute’ in the main panel checked? If so, uncheck them. Is the format set to 44100.0hz? If not, change it so that it is.

Hope this helps!

🙂

%d bloggers like this: