What I need to achieve is this, using AppleScript:
- Wake a remote iMac
- Input password
- Accept password to login
What I succeeded to do so far was enabling Remote Events and connecting to the iMac but now I’m stuck. Here is what I tried so far:
set remotemachine to "eppc://192.168.0.26"
tell application "System Events" of machine remotemachine
keystroke 123
end tell
However, this leads me nowhere. It says to me something like "Error: App is not launched. number -600". Sorry, it’s not the exact English string.
Does anyone knows what I’m doing wrong?
Thanks in advance.
Two major problems:
System Eventsdoesn't run permanently on the remote machine and you cannot launch applications from the local machine. You have to launchSystem Eventswith theFinderwhich is the only application which runs permanently.You have to address the
FinderandSystem Eventsof the remote machine explicitly but add also ausing terms fromblock because the terminology must be resolved locally.This example launches
System Eventson the remote machine and retuns the path to desktop folder