Re: What System? [err. Re: AppleScript-Users Digest, Vol 8, Issue 385]
Re: What System? [err. Re: AppleScript-Users Digest, Vol 8, Issue 385]
- Subject: Re: What System? [err. Re: AppleScript-Users Digest, Vol 8, Issue 385]
- From: Nigel Garvey <email@hidden>
- Date: Wed, 24 Aug 2011 23:19:23 +0100
Alex Zavatone wrote on Wed, 24 Aug 2011 16:50:11 -0500:
>Does my shell script work on the old systems?
>
>do shell script "sw_vers -productVersion"
Not before OS X, obviously. It's fine on my 10.4.11 machine. I'm afraid
my old PowerBook with 10.2.8 no longer starts up. :(
To be fair with regard to my earlier comment below, the "new" system
version methods have been around for a while now and any machine which
can't make use of them is likely to be in the same condition as my
PowerBook. ;)
NG
>On Aug 24, 2011, at 4:01 PM, Nigel Garvey wrote:
>
>> Steve Mills wrote on Wed, 24 Aug 2011 11:36:39 -0500:
>>
>>> On Aug 24, 2011, at 06:27:35, Nigel Garvey wrote:
>>>
>>>> That's almost the oldest method and still my favourite simply
because
>> it
>>>> works on any OS X system (except 10.4.10 and 10.4.11).
>>>
>>> Why is this solution your favorite if it fails for some values? :)
>>
>> 'system attribute "sysv"' only "fails to reflect" the .10 and .11
parts.
>> :) For everything else and for every other version so far, it's fine.
>>
>> All other methods fail on systems earlier than the one in which they
>> were introduced. As I like to describe it: the method you use to
divine
>> the system depends on the system. ;)
>>
>> NG
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list
(email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
.com
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> 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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden