• 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: Jake Pietrykowski <email@hidden>
  • Date: Wed, 25 May 2005 12:05:50 -0500

or add the '-s' option to truncate the '.local' extention.

set myComputerName to do shell script "hostname -s"

Jake


On 5/25/05 11:53 AM, "Kennedy, Colin"  wrote:

> set myComputerName to do shell script "hostname"
>>
>>
>> Hi Francois - don't know how to set the computer  name, but this seems to
>> work for getting it:
>>
>>
>> set allInfo to system info
>>
>> set myName to computer name of allInfo
>>
>>
>>
>> Unfortunately it's real slow to get all the system info, and I can't
>> convince it to give me just the computer name independently, either.
>>
>>
>>
>> Daniel
>>
>>
>>
>>
>>
>>
>>
>> On May 25, 2005, at 7:29 AM, Francois Houle wrote:
>>
>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> I'm trying to  use the "System information" command (part of Misc Commnads
>>> in Standard  additions) to retreive the "computer name"... But I just can't
>>> figure out  how to use it... How should I as for the "system information"
>>> property  called "computer name" ?
>>>
>>> Note: If I do  "system info", then I get the entire list of info back
>>> properly... but the  "computer name" property is supposed to be used with
>>> "system  information"
>>>
>>> I basically want  to be able to set a variable with the computer name.
>>>
>>>
>>>
>>> I also would  like to know if someone has an idea how to set the computer
>>> name via AS or a  "do shell script"...
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>> Frank
>>>


 _______________________________________________
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: "Gary (Lists)" <email@hidden>
References: 
 >RE: About the System Information command (From: "Kennedy, Colin" <email@hidden>)

  • Prev by Date: Re: About the System Information command
  • Next by Date: RE: About the System Information command
  • Previous by thread: RE: About the System Information command
  • Next by thread: Re: About the System Information command
  • Index(es):
    • Date
    • Thread