• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Apple Remote Desktop scripting problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Indesign CS2 Export Script
  • Next by Date: Re: Opening Filemaker 8 DB
  • Previous by thread: Re: Opening Filemaker 8 DB
  • Next by thread: Applescript Help...
  • Index(es):
    • Date
    • Thread