• 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
controlling ARD actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

controlling ARD actions


  • Subject: controlling ARD actions
  • From: Die Fledermaus <email@hidden>
  • Date: Thu, 11 Jul 2013 14:30:15 -0400

Hello Folks,

I am trying something I know should be relatively simple when I try to run the following script i get the following errors

global compname

tell application "Finder"

launch application "Remote Desktop"

end tell

tell application "Remote Desktop"

set theListofcomps to DNS name of every computer --get all exsisting computers in list

set compname to choose from list theListofcomps with title ¬

"Computers" with prompt "Pick the computer you want to send a message to and control"

--lets tech pick from full list of machines.

display dialog " What comment would you like to send " & compname default answer "I will be taking control of your computer"

--Get Answer & Return Comment

set texttouser to (text returned of result) as list

display dialog "you will send- " & texttouser & " -to machine " & compname

add compname to computer list "messaging"

set sendmessage to make new send message task with properties {message:texttouser}

execute sendmessage on computer list "messaging"

end tell


when it gets to the add compname to computer list "messaging" it breaks with error

error "Remote Desktop got an error: AppleEvent handler failed." number -10000


I have tried variations on this line and I have tried name to replace DNS name in the beginning.

add (computer whose name is compname) to computer list "messaging"

generates this error:

error "Can’t get computer whose name = {\"svr-XXX-XXX\"}." number -1728



What I have found is if I have the client type the machine name into the compname variable lowercase via a dialog box this script works. if I use dns name which is lower case this same issue occurs 


Any thoughts on this would be helpful 


Maus




 _______________________________________________
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: Create Aliases to Network Volumes
  • Next by Date: INDESIGN: Getting Find What / Change To Fields of Not-run Search
  • Previous by thread: Re: Create Aliases to Network Volumes
  • Next by thread: INDESIGN: Getting Find What / Change To Fields of Not-run Search
  • Index(es):
    • Date
    • Thread