• 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
Scripting Adding computers to a list in ARD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Adding computers to a list in ARD


  • Subject: Scripting Adding computers to a list in ARD
  • From: Megan Mamalis <email@hidden>
  • Date: Fri, 18 Aug 2006 17:13:50 -0400
  • Thread-topic: Scripting Adding computers to a list in ARD

Title: Scripting Adding computers to a list in ARD
Dear all,
Apologies for the cross-posting for those of you on both lists.

I can't figure out how to create a new computer list from the results of a task. Putting aside the parsing of the result for the moment, I think that I need to know the name of the computer to add it to the list. (Perhaps this isn’t true). The two identifying characteristics I can find are IP address and the computer’s UID number. But I can’t figure out how to get the computer name of the computer whose IP address is 192.168.1.1 (for example). I’ve tried creating a loop comparing my IP address to the IP addresses of every computer in computer list “All Computers”. I can get the IP addresses (including the one I want) fine but the “is equal to” statement never comes out true.

set myIP to "192.168.1.1"
    set allcomps to the Internet address of every computer of computer list "All Computers"
    repeat with thisIP in allcomps
       if myIP is thisIP then
           beep
       end if
   end repeat

Oddly enough, running “if myIP is in allcomps then...” comes out true

How to do this? Or, am I barking up the wrong tree? Is there a way to get the computer name of the computer whose Internet address is “192.168.1.1”?

Have a great weekend- I’m leaving off until Monday.
--
Megan Mamalis
Macintosh Desktop Support Technician
--------------------------------------------
The information transmitted herein is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited.  If you received this in error, please contact the sender and delete the material from any computer.
 _______________________________________________
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: Scripting Adding computers to a list in ARD
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: send to gov script
  • Next by Date: Re: send to gov script
  • Previous by thread: Re: send to gov script
  • Next by thread: Re: Scripting Adding computers to a list in ARD
  • Index(es):
    • Date
    • Thread