Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Remote GUI login via Apple Remote Desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remote GUI login via Apple Remote Desktop
Authored by: YB on Mar 15, '06 09:29:10AM

Was anyone able to find a solution for the "keystroke return" problem?
It seems the username and password gets entered on the 10.4 server GUI login but "return" does not take place.

Any idea.

[ Reply to This | # ]
Remote GUI login via Apple Remote Desktop
Authored by: genericuser on Mar 17, '06 03:57:52PM

Blah. Can't remember my username or password for this site, but it won't send a new e-mail to my account, because it's apparently already in the system. Sheesh.

Anyway, I figured out the fix.

osascript -e 'tell application "System Events"' -e 'keystroke "USERNAME"' -e 'keystroke tab' -e 'delay 0.5' -e 'keystroke "PASSWORD"' -e 'delay 0.5' -e 'keystroke tab' -e 'keystroke return' -e 'end tell'

Not sure why, but you need to pass a tab instance between entering the password and sending the final return key command. Don't ask me why I even thought to try this; I have no idea. But it fixed the problem, which I was also having. :)

HTH --

[ Reply to This | # ]