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


Click here to return to the 'Script the Login window through Apple Remote Desktop' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script the Login window through Apple Remote Desktop
Authored by: engelby on Feb 16, '10 02:09:32PM

You do need assistive devices enabled in order to do this. If you have ARD and want to do it, just push out the /var/db/.AccessibilityAPIEnabled file from your machine to turn it on.

This is what I used to do a few years back to log in to lots of machines at once through ARD. Same thing, just a lot less. If you want to click on Other, you can add keystrokes to type that instead.
you can add a "delay 1" in between lines if needed

osascript -e 'tell application "System Events" to keystroke "usernamegoeshere"'; \
osascript -e 'tell application "System Events" to keystroke tab'; \
osascript -e 'tell application "System Events" to keystroke "passwordgoeshere"'; \
osascript -e 'tell application "System Events" to keystroke return'



[ Reply to This | # ]
Script the Login window through Apple Remote Desktop
Authored by: patrickfergus on Feb 16, '10 07:58:36PM

I think System Events' "keystroke" command doesn't require enabling access for assistive devices, however the original hint's script does (e.g. "click button "Log In"...").



[ Reply to This | # ]