Re: Getting Computer Name of Sharing Pane
Re: Getting Computer Name of Sharing Pane
- Subject: Re: Getting Computer Name of Sharing Pane
- From: Jeffrey Berman <email@hidden>
- Date: Thu, 15 May 2003 11:31:41 -0500
On 5/9/03 1:03 PM, Jeffrey Berman <email@hidden> wrote:
>
With OS X, is there a simple way to have a script get the computer name
>
listed in the Sharing pane of System Preferences?
>
>
I found I can get the name with the following:
>
>
do shell script "awk '/ComputerName/ " &
>
"{{{getline} print substr($0,12,length($0)-20)} exit}'" &
>
" /private/var/db/SystemConfiguration/preferences.xml"
>
>
but surely there must be a more straightforward solution.
There's been no response to this one. Is a 'do shell script' command the
only way to have a script get the computer name in the Sharing preference?
-Jeffrey Berman
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.