Re: Logging in all the computers for the little ones.
Re: Logging in all the computers for the little ones.
- Subject: Re: Logging in all the computers for the little ones.
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 8 Nov 2005 14:38:25 -0500
On Nov 8, 2005, at 2:15 AM, Jay Louvion wrote:
On 7/11/05 19:41, "email@hidden" <email@hidden> wrote:
> To:email@hidden
> CC:
> BCC:
> Subject:Logging in all the computers for the little ones.
>
> I'm a tech coordinator in 3 elementary schools. When the
littlest ones
> arrive logging into the OS 10.3.9 Server on a 10.2.8 workstation
takes
> forever. They can't spell very well, they don't know where all
the keys
> are, and one error and they are back to square one. An Apple System
> Engineer gave me the code below that I can put into ARD and log the
> machines in under a generic guest user and it will supposedly run
in ARD
> and log every kid in. It has a problem in that it doesn't work. Can
> anyone see why not? The code is:
>
> osascript <<EOF
>
> set logInUser to "kid"
> set logInPassword to "kidpassword"
>
> tell application "System Events"
> tell application process "loginwindow"
> -- Really, I am not sure if I need all these delays, but
> it seemed to help
> keystroke logInUser
> delay 1
> keystroke tab
> delay 1
> repeat with aChar in characters of logInPassword
> keystroke aChar
> delay 0.2
> end repeat
>
> keystroke return
> end tell
> end tell
Well, I’ve given it a try here and I must notice that keytroke
scripting does seem kinda edgy. In my events window, the typing is
fine, but as to what actually gets typed, well... sometimes it’s
just a letter that’s dropped out, but othertimes, the whole text of
my script gets selected, then replaced with the remainder of
characters . Running the script from the SE, obviously.
I don’t understand why the script you were given uses one way of
doing it once (keystroke loginUser) and then another (repeat in
characters). Which we both tested here and are both unstable.
I think this answers my question of why you can't copy and paste
passwords. It must be entered one character at a time!
So, now I know that if I copy a password, I can use SEvents to paste
it, one character at a time.
I did not have time to check the script, but it does seem OK.
John's suggestion is the best. If you are going to type in a
password for the user, why do you need a password to begin with?
Would someone with an apple email care to comment on keystroke
scripting ? Chris ? Dave ?
TIA,
J.
Jay Louvion
Deivy _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden