Re: Remote apple events permissions
Re: Remote apple events permissions
- Subject: Re: Remote apple events permissions
- From: Takaaki Naganoya via AppleScript-Users <email@hidden>
- Date: Thu, 20 Jan 2022 01:21:46 +0900
Hi Peter,
I have a macOS 12 machine (m1mini.local) and a macOS 10.13 machine
(MBA11J.local).
Both pattern works for me.
You'd better wrap the script with "using terms from" clause.
Your script have to be compiled with local Finder's script dictionary not with
remote Finder script dictionary.
--macOS 12--> macOS 10.13 machine
using terms from application "Finder"
tell application "Finder" of machine "eppc://user:email@hidden"
sleep
end tell
end using terms from
--macOS 10.13--> macOS 12 machine
using terms from application "Finder"
tell application "Finder" of machine "eppc://user:email@hidden"
sleep
end tell
end using terms from
> 2022/01/15 16:48、Peter Gort via AppleScript-Users
> <email@hidden>のメール:
>
> 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?
>
--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/
_______________________________________________
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