I'm using the following to log into over 300 remote systems. The first time I run it on any system it fails, with an execution error, error type -10810. When I run it second time, the script runs, with the expected result.
osascript <<EOF
tell application "System Events"
keystroke "$4"
keystroke tab
delay 0.5
keystroke "$5"
delay 0.5
keystroke return
end tell
EOF
It's be nice to get this to run correctly, the first time I run it in Casper Remote. Anyone have any ideas as to why the first run fails, but the second time is the charm?
Thanks in advance!
