• 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: Setting the computer name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the computer name


  • Subject: Re: Setting the computer name
  • From: "John C. Welch" <email@hidden>
  • Date: Wed, 14 Sep 2005 14:59:42 -0500
  • Thread-topic: Setting the computer name

On 9/13/05 16:03, "email@hidden" <email@hidden> wrote:

> I'm trying to develop a script that will, among other things, set the
> name of a computer in System Preferences -> Sharing. I've started with a
> modified version of Gabe Lucero's inventory script (same basic task I'm
> trying to accomplish).

Using UI scripting here is the complete hard way to do it. Use "do shell
script" with
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/
systemsetup and the -setcomputername  switch:

Usage: systemsetup -setcomputername <computername>
        Set computer name to <computername>

--
Politics:

A strife of interests masquerading as a contest of principles. The conduct
of public affairs for private advantage.

Ambrose Bierce


 _______________________________________________
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

References: 
 >Setting the computer name (From: email@hidden)

  • Prev by Date: Re: "Numeric overflow"?
  • Next by Date: Re: Properties within Properties - Scripting Address book
  • Previous by thread: Re: Setting the computer name
  • Next by thread: Conflict of interests btw System Events and Standard Additions
  • Index(es):
    • Date
    • Thread