Re: ARD control issues
Re: ARD control issues
- Subject: Re: ARD control issues
- From: John Welch <email@hidden>
- Date: Wed, 14 Aug 2013 11:49:15 -0400
that works too. the basic problem is that when you get a return from a list of names, and directly pass that to ARD, ARD doesn't know you're talking about a computer at that point.
On 14 Aug 2013, at 11:46 AM, Emmanuel LEVY <email@hidden> wrote:
> I use intensively AppleScript and Remote Desktop, but not AS in ARD.
>
> Though, I tried what you can't make work, and I could have ARD control a given computer, using this script :
>
> tell app "Remote Desktop"
> set c to item 1 of (every computer whose name is "q4")
> control c
> end
>
> HTH.
>
> Best,
> Emmanuel
>
>
> On Aug 13, 2013, at 10:34 PM, Die Fledermaus wrote:
>
>> 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.
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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
_______________________________________________
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