Re: Setting the computer name
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