• 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: About the System Information command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: About the System Information command
      • From: Michael Gmail <email@hidden>
References: 
 >Re: About the System Information command (From: Jake Pietrykowski <email@hidden>)

  • Prev by Date: Re: Mail.app: Delete bcc recipient from new mail
  • Next by Date: Help with quitting stay-open app
  • Previous by thread: Re: About the System Information command
  • Next by thread: Re: About the System Information command
  • Index(es):
    • Date
    • Thread