• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 29 Apr 2014 19:04:37 -0700
  • Thread-topic: System info

On 4/29/14, 4:22 PM, "Shane Stanley" <email@hidden> wrote:

> 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'.


For another way to get the system version, this currently works:

    tell application "Finder" to get its version
    --> "1.9.2"

At least in Mavericks, the Finder version is the same as the system version.
I don't know how far back that is true. According to its dictionary,
'product version' is supposed to return 'the version of the System software
running on this computer', but all it returns is "".



--
Paul Berkowitz


 _______________________________________________
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

References: 
 >Re: System info (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: System info
  • Next by Date: Re: System info
  • Previous by thread: Re: System info
  • Next by thread: Re: System info
  • Index(es):
    • Date
    • Thread