Re: Determining OS Version
Re: Determining OS Version
- Subject: Re: Determining OS Version
- From: Marconi <email@hidden>
- Date: Sun, 24 Jan 2010 16:02:20 -0700
Answers thus far have mostly missed the point. I do not need to
determine, programatically, the OS version being run. I want to do
this for bootable volumes dropped onto my droplet. I may be running
10.5.8 on my workstation (I am) but if I have mounted a volume with
10.3.9 installed, I want the droplet to show 10.3.9, among other
things, when I drag that volume to it.
At 1:38 PM -0800 1/24/10, John Baltutis sent email regarding Re:
Determining OS Version:
Disks have partition schemes, not volumes, so dropping a bootable volume onto
your droplet needs to refer to the volume's parent disk.
Of course. I'm intending to use diskutil in a 'do shell script' to
find the partition type of the disk containing the dropped volume.
I've yet to figure out how to get the device name from a dropped
volume but I have a working script to find the volume name and
partition type when the device is known.
Disks and volumes have
no relationship to computer type: PPC or ICBM (Intel-chip-based Mac). Most
likely, your best bet for getting the partitioning scheme is to parse the
output from Apple System Profiler or the results from the do shell script
command and diskutil:
tellapplication "System Profiler"
get system profile
end tell
Again, this misses the point. I don't want to know what OS I'm
running, but the OS installed on any bootable volume I might drag to
my droplet.
Luther Fuller's mention that
/System/Library/CoreServices/SystemVersion.plist contains a version
string may prove helpful, but the plist may have to be parsed in AS.
_______________________________________________
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