Running script on Mojave

sebastian_santo
New Contributor III

Hello, I need someone help I'm trying to run a script via jamf policy in a few computer and want to do it all at once but I get this error bellow

execution error: Not authorized to send Apple events to System Events. (-1743)

Really need some help
1142223abec243a0b3fa0656edc5e394

4 REPLIES 4

mschroder
Valued Contributor

I have seen the "-1743" when running a shell script that wants to start on osascript to display information to the user. It only happens for a few nodes. I had no opportunity to debug this. I tried to run 'tccutil reset AppleEvents com.apple.Terminal' to clear this, but it did not solve the issue. I need more info from the client for further debugging.

sebastian_santo
New Contributor III

@mschroder thank you for the info, I found the issue I just created a profile using the PPPC utility and allow the TERMINAL, JAMF.app, jamfHelper, and osascript once the profile was installed everything went well

bmortens115
New Contributor III

jamf has built a PPPC mobileconfig for this: here
Download the .mobileconfig and upload it to your jamf pro server. Scope it to all computers that are 10.14.0 and above with UAMDM.

mschroder
Valued Contributor

Yes, there is a mobileconfig for this, this is why this works in most cases. And then there are the cases where it fails...