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: danta_1998 on Mar 29, '12 09:10:05AM

I have a simpler solution that works for me on multiple versions of Mac OS X. Try:

osascript <<EndOfMyScript
tell application "System Events"
keystroke "myUserName"
keystroke return
delay 0.5
keystroke "myPassword"
delay 0.5
keystroke return
end tell
EndOfMyScript

Naturally, you'll need to insert your particular username/password information into this script before using it. I've tested this successfully for 10.6.x and 10.7.x. I found this snippet online quite awhile back and can't remember where. If anyone recognizes this as their work, thanks.



[ Reply to This | # ]