Hello,
Hope I’m posting to the correct place. I didn’t get a workable answer from Apple’s Remote Desktop forum.
We have a user account on our lab computers for required testing. After logging in to the test account, the test program (NWEA TestTaker) launches, and a user name and password is required to continue. I’m using the same script to log in to both accounts, the only difference being different username/password.
When using a UNIX command to simultaneously login from Remote Desktop, I can log in to the test account with no problem, but the log in command for the test program fails with the following message”
RegisterProcess failed (error = -50)
/bin/bash: line 9: 337 Abort trap osascript <<EOF
tell application “System Events”
keystroke “username”
keystroke tab
delay 0.5
keystroke “password”
delay 0.5
keystroke return
EOF
Any ideas? Below is the script I’m using. Thank you very much.
osascript <<EOF
tell application “System Events”
keystroke “username”
keystroke tab
delay 0.5
keystroke “password”
delay 0.5
keystroke return
end tell
EOF