Last active
August 29, 2015 14:14
-
-
Save nmcspadden/3fa1bec1f43ddfc86f83 to your computer and use it in GitHub Desktop.
Send UNIX Command for ARD to log in a device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript <<EndOfMyScript | |
set logInUser to "username" | |
set logInPassword to "password" | |
tell application "System Events" | |
tell application process "loginwindow" | |
key code 53 | |
delay 1 | |
key code 125 | |
delay 1 | |
key code 36 using option down | |
delay 1 | |
keystroke tab | |
delay 1 | |
key code 117 | |
delay .5 | |
keystroke tab | |
delay .5 | |
key code 117 | |
keystroke return | |
delay 1 | |
keystroke tab | |
delay .2 | |
repeat with aChar in characters of logInUser | |
keystroke aChar | |
delay 0.2 | |
end repeat | |
keystroke tab | |
delay .5 | |
repeat with aChar in characters of logInPassword | |
keystroke aChar | |
delay 0.2 | |
end repeat | |
delay 0.2 | |
keystroke return | |
keystroke return | |
end tell | |
end tell | |
EndOfMyScript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment