Logging In a User at the Login Window
Apple Remote Desktop can log in any user on a client computer by using AppleScript
System Events and the Send UNIX Command feature. Using these powerful features
you can log in any number of client computers to the same user name simultaneously
from the login window.
This script is for use on computers at the login screen only.
To log in a user:
This method uses the
osascript
command. For detailed information on
osascript
, see
the
osascript
man page.
1
Select a computer list in the Remote Desktop window.
2
Select one or more computers in the selected computer list.
3
Choose Manage > Send UNIX Command.
152
Chapter 8
Administering Client Computers
4
Type the following AppleScript in the UNIX Command window, adding the user name
and password:
osascript <<EndOfMyScript
tell application "System Events"
keystroke "<user name>"
keystroke tab
delay 0.5
keystroke "<password>"
delay 0.5
keystroke return
end tell
EndOfMyScript
5
Choose user “root” to run the command.
6
Click Send.
The client computer executes the script.