• 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: Telling remote Finder to sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Telling remote Finder to sleep


  • Subject: Re: Telling remote Finder to sleep
  • From: Deivy Petrescu <email@hidden>
  • Date: Thu, 25 Jun 2009 10:18:36 -0400


On 25/06/2009, at 09:07 , Steve Mills wrote:

I have a script that wakes a remote Mac via wakeonlan, does a backup, then tells it to sleep like so:

using terms from application "Finder"
set u to application "Finder" of machine "eppc://user:email@hidden "

tell u
sleep
end tell
end using terms from


This has worked up until a few days ago. The local machine is a new Mac Pro running 10.5.7 and the remote is a G5 running 10.4.11. Aside from some updates that might have been applied to various pieces of system software on the Mac Pro, the only thing that has changed is my router. The old one (a 4-port LinkSys) died, so I replaced with today's equivalent model.

To make sure it wasn't the router blocking that port or something like that, I tried targeting another Mac (a 1st generation Mac Pro also running 10.5.7) and it worked. The G5 still has the Remote AppleEvents sharing option turned on. If I put anything else inside the tell block, it returns "Finder got an error: Could not establish connection to host".

Any ideas?

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/

Steve, "sleep" is an System Events event.

Try this

tell application "System Events" of machine "eppc://user:email@hidden " to sleep



Deivy Petrescu
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
References: 
 >Telling remote Finder to sleep (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: list issues
  • Next by Date: Re: Telling remote Finder to sleep
  • Previous by thread: Telling remote Finder to sleep
  • Next by thread: Re: Telling remote Finder to sleep
  • Index(es):
    • Date
    • Thread