Use remote AppleScripts to sleep another machine
Sep 14, '02 12:16:07PM
Contributed by: patashnik
Looking for a way to make my Cube go to sleep from my tiBook, I've found this way to do it:
- Activate Remote Apple Events in the Sharing preference pane on the machine you want to control (in my case, a Cube with IP address 192.168.1.2)
- From here on, you can either create an AppleScript from the AppleScript Editor, or, what I do, run the osascript utility from Terminal
- Enter the following script:
tell application "Finder" of machine "eppc://192.168.1.2"
sleep
end tell
Of course, you can target different applications, different machines and execute difference commands. Also, make sure your network security settings won't allow events from unknown IP numbers.
By the way, this should also work in 10.1
Comments (5)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020914091607912