Re: Display dialog to a remote machine via EPPC
Re: Display dialog to a remote machine via EPPC
- Subject: Re: Display dialog to a remote machine via EPPC
- From: Emmanuel LEVY <email@hidden>
- Date: Wed, 18 Jul 2012 13:09:01 +0200
FWIW, Smile can be that proxy application.
You have one command in Smile's dictionary to open a listening app's port and to hook a handler to be called when a request is sent - typically the handler would mostly be "do script".
And you have one command to send a request to a listening remote app. We use it very much :-)
Emmanuel
On Jul 17, 2012, at 5:02 PM, Jon Pugh wrote:
> On Jul 16, 2012, at 10:59 PM, John wrote:
>> How can I send a display dialog to a remote machine via EPPC?
>>
>> tell application "System Events" of machine "eppc://user:password@host"
>> display dialog "hi"
>> end tell
>> --> error "Finder got an error: A privilege violation occurred." number -10004
>>
>> tell application "Finder" of machine "eppc://user:password@host" -- output of first script
>> display dialog "hi"
>> end tell
>> --> http://i.stack.imgur.com/EVWNS.png
>>
>> I believe Scripting Addition Security in the release notes discusses the issue but I have not been able to resolve it yet.
>> https://developer.apple.com/library/mac/#releasenotes/AppleScript/RN-AppleScript/RN-10_6/RN-10_6.html
>>
>> Although I have already received several helpful answers which lead me to believe that it can't be done this way, I would appreciate any additional insights.
>
> The recommended technique is to install a proxy application on the other machine, typically an AppleScript applet, with a handler defined that does the display dialog call. Then you call that from the remote machine. This avoids the whole “call a remote scripting addition” security issue.
>
> Jon
>
> _______________________________________________
> 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
_______________________________________________
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