• 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
Re: Problem with scripting ARD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with scripting ARD


  • Subject: Re: Problem with scripting ARD
  • From: "John C. Welch" <email@hidden>
  • Date: Fri, 04 Aug 2006 10:57:50 -0500
  • Thread-topic: Problem with scripting ARD

On 8/4/06 08:33, "Andrei Tchijov" <email@hidden> wrote:

> Hi, I am trying to write Apple Script which will add new computer to ARD (v
> 3.0). This is what I come up with so far
>
> tell application "Remote Desktop"
> add (make new computer with properties {name:"xxx", DNS name:"xxx.abc.com",
> Internet address:"x.x.x.x"}) to item 1 of computer lists
> end tell
>
>
> Unfortunately it does not work. If I try to run it, I am getting "Remote
> Desktop got an error: NSInternalScriptError" and part of the script in "()"
> gets highlighted.  Also, I have noticed this in my "console.log"
>
> 2006-08-04 09:28:25.306 Remote Desktop[9209] [<RDApplication 0x41e050>
> insertValue:inPropertyWithKey:]: lookup of unknown key: 'computers'.
> This class does not have a method of the name insertInComputers:
>
> These 2 lines appears every time I am trying to run the script.
>
> Any help will be highly appreciated.

You can't set any individual computer properties, they're all read only. So
you have to add them to Apple Remote Desktop manually. You can script adding
them to lists however. If this is as annoying to you as it is to me, then
please, please, please submit bugs on this at bugreporter.apple.com.

I'm going to bring it up next week, but filed bugs never hurt.

--
john c welch: Destroying idealism since 1967


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problem with scripting ARD
      • From: Andrei Tchijov <email@hidden>
References: 
 >Problem with scripting ARD (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Problem with scripting ARD
  • Next by Date: Scripting Excel Charts
  • Previous by thread: Problem with scripting ARD
  • Next by thread: Re: Problem with scripting ARD
  • Index(es):
    • Date
    • Thread