ARD Login Script errors
I've been using this as a unix command to login a lab of computers for several years
osascript -e 'tell application "SecurityAgent" to activate'; \
osascript -e 'tell application "Bluetooth Setup Assistant" to quit'; \
osascript -e 'tell application "System Events" to keystroke "student"'; \
osascript -e 'tell application "System Events" to keystroke return'
osascript -e 'tell application "System Events" to delay 0.9'; \
osascript -e 'tell application "System Events" to keystroke "learn"'; \
osascript -e 'tell application "System Events" to delay 0.9'; \
osascript -e 'tell application "System Events" to keystroke return'
and randomly get this error message back;
osascript[58392:3633525] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data (repeated 10+ times or more)
the login works, so just curious to know what might be causing this error.
This same question was asked a few years ago in this discussion https://discussions.apple.com/thread/7382301
With this as one suggested solution:
If that does not work, for the account your using to remote into the computer.
Log into the client. User Directory Utility to enable root
login to the computer as root
open system preferences Security & Privacy
click on privacy tab
click on accessablity
check SystemUIServer
When I follow these instructions there is no SystemUIServer to check.
iMac, 10.8.x - 10.11.x