Remote apple events permissions
Remote apple events permissions
- Subject: Remote apple events permissions
- From: Peter Gort via AppleScript-Users <email@hidden>
- Date: Sat, 15 Jan 2022 18:48:32 +1100
Hi All,
I’m trying to tell Finder on remote machines to shut down. I have turned on
“Remote Apple Events” in the Sharing section of System Preferences in each
targeted computer. The computer doing the telling is using this syntax
tell application "Finder" of machine "eppc://username:password0@ipaddress"
shut down
end tell
Which worked on one of my computers (which is running Monterey) and not on
another (which is running High Sierra). Despite having the preference setting
turned on for Administrator accounts, when I try to compile the script that
targets the problematic computer, it pops a dialog asking for the username and
password, so I put in the valid admin account username and password, and Script
Debugger returns “Unable to authenticate user -927”.
So I thought I had accidentally refused permission for the admin account on
that computer to receive Remote Apple Events for Finder (this is on the High
Sierra machine) , but I can’t figure out how to reset that permission. I tried
tccutil reset AppleEvents
But that returns
tccutil: Failed to reset database
So I tried the nuclear option of
tccutil reset All
But that didn’t allow it either. I finally created another admin account on
the target computer and tried that one, and it worked. So somehow the first
admin account I used had permission for remote AppleEvents turned off, and the
nuclear option "tccutil reset All” didn’t reset that one.
Anyone know how to reset that particular permission?
Peter Gort
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden