Re: System info
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