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


Why? | 29 comments | Create New Account
Click here to return to the 'Why?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Why?
Authored by: slb on Feb 16, '10 01:25:28PM

Can someone post why this is needed or useful?
I don't grasp it as posted.

Thanks!



[ Reply to This | # ]
Why?
Authored by: patrickfergus on Feb 16, '10 01:47:16PM

- A script running DiskWarrior on a large number of computers via NetBoot

- Scripting a GUI backup tool (or any other tool that's primarily GUI-based)

- A training class that needs all the machines logged in and ready to go when the students walk in

Sometimes you just have to script the process as far as you possibly can and do the last step in the GUI.



[ Reply to This | # ]
Why?
Authored by: Unsoluble on Feb 16, '10 02:24:46PM
When you've got a lab or school or whatever full of Macs sitting at the login screen, there's no built-in method to get them to all log in at the same time, using Remote Desktop. So you need to send a script to accomplish this. FYI, here's the script I've been using, which works pretty well:

osascript <<EndOfMyScript
tell application "System Events"
keystroke "oth"
delay 5.0
keystroke return
delay 5.0
keystroke "admin"
keystroke return
delay 1.0
keystroke "password"
keystroke return
delay 1.0
keystroke return
end tell
EndOfMyScript


[ Reply to This | # ]
Why?
Authored by: slb on Feb 16, '10 05:37:58PM

Thanks much!



[ Reply to This | # ]