Cannot use 'tell application "System Events" to keystroke
I've been using this for some years now with ARD to log into whole labs when we are doing work on them. As you can see below I would use this command to have an entire lab login for me. As of OS X Mavericks it would see you cannot use osascript -e? Can someone help me create a method that works with Mavericks that does the following?
osascript -e 'tell application "System Events" to keystroke “xxxxusernamexxxx"'; \
osascript -e 'tell application "System Events" to delay 1.0'; \
osascript -e 'tell application "System Events" to keystroke return'
osascript -e 'tell application "System Events" to delay 4.0'; \
osascript -e 'tell application "System Events" to keystroke “xxxxpasswordxxxx"'; \
osascript -e 'tell application "System Events" to delay 1.0'; \
osascript -e 'tell application "System Events" to keystroke return’
Thank you!