Re: About the System Information command
Re: About the System Information command
- Subject: Re: About the System Information command
- From: "Gary (Lists)" <email@hidden>
- Date: Thu, 26 May 2005 04:38:48 -0400
"Jake Pietrykowski" wrote:
> or add the '-s' option to truncate the '.local' extention.
>
> set myComputerName to do shell script "hostname -s"
>
> Jake
Whether or not this matters to the OP, or others, the ComputerName and the
LocalHostName may not be "equal" strings, and that may affect the desired
display, with respect to character case.
'hostname' returns the lower-cased version of what I entered as the Computer
Name.
There is a pList entry here:
/Library/Preferences/SystemConfiguration/preferences.plist
where you can note the difference between the Network entry and the System
entry (and LocalHostName and ComputerName, respectively):
[...]
<key>System</key>
<dict>
<key>Network</key>
<dict>
<key>HostNames</key>
<dict>
<key>LocalHostName</key>
<string>mixedcase</string> <-- HERE
</dict>
</dict>
<key>System</key>
<dict>
<key>ComputerName</key>
<string>MixedCase</string> <-- AND HERE, MY ENTRY
<key>ComputerNameEncoding</key>
<integer>0</integer>
</dict>
</dict>
[...]
--
Gary
_______________________________________________
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