I have two issues vexing me. The first is when I fill a variable via a dialog box using this script
display dialog "What machine do you want to control" default answer "Machine DNS name"
--Get Answer & Return Comment
set compname to (text returned of result)
the compname variable is "dnsname" and works throughout the script
If I try it from a list
tell application "Remote Desktop"
set theListofcomps to 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.
set compname to (text returned of result)
the compname variable is {\"dnsname\"} and the script then fails
So how do I make the {\"dnsname\"} turn out as "dnsname" in compname?
Second issue is I am trying to control the compname machine via ARD and I notice there is a control command in the dictionary. I have tried several ways to make that command work, but so far the script says it did everything correctly. I never get a window to be created so I can control the machine in question. I have tried the control command against a single machine and against a list with out any results.