Re: About the System Information command
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