• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Display dialog to a remote machine via EPPC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display dialog to a remote machine via EPPC


  • Subject: Re: Display dialog to a remote machine via EPPC
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 17 Jul 2012 14:00:53 -0400


On Jul 17, 2012, at 11:02 AM, 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

I've never gotten this to work reliably, but I have set up little Applescript applications to foster messing with this of you want the applications/code.

The eppc URLs must be resolved at compile time too, which makes this a royal PITA.

What I have done is wired up iChat as a message router by sending messages to me logged in on another computer ala iChat, to restart and shutdown my other Mac(s) without having to get off my shiny metal butt but oddly, the command must be issued twice before it works.

If you want this, I also have it as well.

GL.  EPPC communication is a royal PITA.  Make sure the OS versions are similar on all the machines you're trying this on.


 _______________________________________________
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

References: 
 >Display dialog to a remote machine via EPPC (From: John <email@hidden>)
 >Re: Display dialog to a remote machine via EPPC (From: Jon Pugh <email@hidden>)

  • Prev by Date: Folder actions - interesting behaviour depending on how items are added to the folder
  • Next by Date: Re: Display dialog to a remote machine via EPPC
  • Previous by thread: Re: Display dialog to a remote machine via EPPC
  • Next by thread: Re: Display dialog to a remote machine via EPPC
  • Index(es):
    • Date
    • Thread