Loading...

automator-users@lists.apple.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Install software update Percy Bhathena Wed Feb 01 19:10:03 2012

Hi all --

I am trying to write my first script that lets me install software updates
on remote machines using remote desktop 3. The users on these machines are
restricted users. I start the script by selecting a machine (which works)
and sending a text (which also works). the script below works on my local
machine but on the remote machine only prompts them to log in even though I
try to pass the username and pwd through the script. Any help would be
appreciated.

*activate* *application* "Software Update"

*tell* *application* "System Events"

*tell* *process* "Software Update"

 *tell* *window* 1

 *repeat* *until* *exists* *sheet* 1

  *delay* 1

 *end* *repeat*

 *repeat* *while* *exists* *progress indicator* 1 *of* *sheet* 1

  *delay* 1

 *end* *repeat*

 *delay* 0.5

 *if* *exists* *button* "Quit" *of* *sheet* 1 *then*

  *click* *button* "Quit" *of* *sheet* 1

  *return*

 *else*

  *click* *button* 1

 *end* *if*

 *end* *tell*

*end* *tell*

*repeat* *until* (*exists* *window* "Authenticate" *of*
*process*"SecurityAgent")

 *delay* 0.5

*end* *repeat*

*tell* *window* "Authenticate" *of* *process* "SecurityAgent"

 *tell* *group* 1

 *set* value *of* *text field* 1 *to* "username"

 *set* value *of* *text field* 2 *to* "password"

 *end* *tell*

 *click* *button* "OK" *of* *group* 2

*end* *tell*

*end* *tell*
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/automator-users/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]