Apple Remote Desktop scripting problem
Apple Remote Desktop scripting problem
- Subject: Apple Remote Desktop scripting problem
- From: Håvard Graudo <email@hidden>
- Date: Thu, 19 Jul 2007 16:21:11 +0200
I want to run 'ls -p /Users/' on clients in ARD 3.1. I select one
client and run this:
[error checking removed]
tell application "Remote Desktop"
set theTask to make new send unix command task with properties
{showing output:true, user:"root", script:"ls -p /Users/"}
set theClients to the selection
set theTaskResult to execute theTask on theClients
set theusers to results of item 1 of |computerStatuses| of
theTaskResult
end tell
In ARD I get the expected result, but the script only get the *last*
user, like this:
ARD result:
".DS_Store
.localized
Shared/
john/
johnadmin/
lena/
lenaadmin/
theadmin/"
Script result:
"theadmin/"
Why does not the same result show up in my script?
(*
Script is based on and John C Welch's example scripts and MacTech
article.
<http://homepage.mac.com/jcwelch/ardscriptcollections.zip>
Thanks John!
*)
Håvard
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden