• 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: Wed, 18 Jul 2012 10:29:01 -0400

That could be a thing of beauty Emmanuel

On Jul 18, 2012, at 7:09 AM, Emmanuel LEVY wrote:

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

In trying to get this to work, I would declare a method in an AppleScript app on the remote machine (try launching it on your own machine and target localhost, and practice starting it up.  Then declare a method in it, like "HI()".  Inside of Hi, make a log out to the console and display a dialog.  

Practice starting that app up ala AppleScript, practice messaging to it on your machine.  Look at the output in the console and verify that a dialog is displayed.  Then, move it to another Mac - with the same version of the OS - and test it again.  I know that there are often problems when trying eppc communication through different versions of the OS.

on Hi()
beep
log "hi"
display dialog "hi"
end Hi
 _______________________________________________
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

  • Follow-Ups:
    • Re: Display dialog to a remote machine via EPPC
      • From: John Day <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>)
 >Re: Display dialog to a remote machine via EPPC (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: Display dialog to a remote machine via EPPC
  • Next by Date: Re: Filter barcode out of a string (with grep?)
  • 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