如何通过 EPPC 将显示对话框发送到远程机器?我相信发行说明中的 Scripting Addition Security 讨论了这个问题,但我还没有能够解决它。发行说明
尝试 1
using terms from application "Finder"
set remoteFinder to application "Finder" of machine "eppc://user:password@host"
tell remoteFinder to display dialog "Hi!" buttons {"A", "B"}
end using terms from
尝试 2 应用程序“dispD.app”保存在远程机器上,应该接受 yourMessage 参数。
on run {yourMessage}
display dialog yourMessage buttons {"A", "B"}
end run
我从本地计算机运行此脚本:
using terms from application "Finder"
set remoteFinder to application "Finder" of machine "eppc://user:password@host"
tell remoteFinder to run script file "path:to:my:dispD.app" with parameters {"Hi!"}
end using terms from