• 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: "Kennedy, Colin" <email@hidden>
  • Date: Wed, 25 May 2005 12:53:43 -0400
  • Thread-topic: About the System Information command

set myComputerName to do shell script "hostname"
-----Original Message-----
From: applescript-users-bounces+colin.kennedy=email@hidden [mailto:applescript-users-bounces+colin.kennedy=email@hidden]On Behalf Of Daniel Jalkut
Sent: Wednesday, May 25, 2005 12:21 PM
To: Francois Houle
Cc: AppleScript User's List
Subject: Re: About the System Information command

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

 _______________________________________________
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: Jake Pietrykowski <email@hidden>
  • Prev by Date: Re: [ann] TextCommands 0.4.0
  • 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