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: applebit on Mar 20, '12 11:21:32AM
I have since discovered that 10.7 has broke this - an altered version worked for me this morning (even showing this to some of the other tech's in our office) then it broke - now if I run the same code by sending out via ARD it works... I submitted a bug report with Apple because we need this resolved!



sudo touch /var/db/.AccessibilityAPIEnabled
osascript <<EOT<br> tell application "System Events"
tell process "SecurityAgent"
set value of text field 1 of group 1 of window "Login" to "localpass"
set value of text field 2 of group 1 of window "Login" to "localadmin"
end tell
end tell
EOT


and the other option that WAS working but now isn't (and only a few short hours later!):


osascript <<EOT<br> tell application "System Events"
tell process "SecurityAgent"
repeat 2 times
delay 0.1
key code 48
delay 0.1
key code 51
end repeat
keystroke "username"
key code 48
keystroke "password"
repeat 3 times
delay 0.1
key code 36
end repeat
end tell
end tell
EOT


---
Jon McCullough
Systems Support Specialist


[ Reply to This | # ]