Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Login Scripts



On Jan 27, 2006, at 7:39 AM, Steven Kolins wrote:

"Tim McCarthey" <email@hidden> on Friday, January 27, 2006
at 10:12 AM -0500 wrote:
Does anyone have a script that when sent out through ARD, will login all
of the selected computers in to which ever local account is specified in
the script?

osascript -e 'tell application "System Events" to keystroke "LOGIN_NAME"'; \
osascript -e 'tell application "System Events" to keystroke tab'; \ <<< this
one causes the password slot to open up>>>
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke "PASSWORDHERE"'; \
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke return'

On a classroom of recent PMG5s, I've had to drastically increase the last delay, and even add multiple 'keystroke return' statements, to get it to actually submit the typed info.


Matt


=================================================================================== CONFIDENTIALITY NOTICE: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this email in error, please notify the sender immediately and delete the original message. Neither the sender nor the company for which he or she works accepts any liability for any damage caused by any virus transmitted by this email. =================================================================================== _______________________________________________ Do not post admin requests to the list. They will be ignored. Client-management mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden
References: 
 >Login Scripts (From: "Tim McCarthey" <email@hidden>)
 >Re: Login Scripts (From: "Steven Kolins" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.