• 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: System info
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System info


  • Subject: Re: System info
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 30 Apr 2014 09:22:31 +1000

On 30 Apr 2014, at 3:39 am, Iurista GmbH <email@hidden> wrote:

> I extract from system info the system version, the short user name, the home directory, the boot volume and the computer name.

If you use 'path to home folder', you'll get the home directory; 'path to startup disk' will give you the name of the startup disk; and 'do shell script hostname' will give you the computer name. For the short user name, either 'do shell script whoami' or 'tell application "System Events" to name of current user'.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: System info
      • From: Paul Berkowitz <email@hidden>
References: 
 >System info (From: Iurista GmbH <email@hidden>)
 >Re: System info (From: Ron Hunsinger <email@hidden>)
 >Re: System info (From: Iurista GmbH <email@hidden>)

  • Prev by Date: Re: Considerable simplification should be possible
  • Next by Date: Re: System info
  • Previous by thread: Re: System info
  • Next by thread: Re: System info
  • Index(es):
    • Date
    • Thread