Re: 10.4.9 versus 10.4.10
Re: 10.4.9 versus 10.4.10
- Subject: Re: 10.4.9 versus 10.4.10
- From: "Nigel Garvey" <email@hidden>
- Date: Mon, 17 Mar 2008 14:05:45 +0000
deivy petrescu wrote on Sun, 16 Mar 2008 15:42:43 -0400:
>On Mar 16, 2008, at 12:58, Nigel Garvey wrote:
>> Another OS version; another OS-version-specific method of finding out
>> what it is. And this one uses THREE system attribute calls. I think
>> I'm
>> suffering from stupidity fatigue. :(
>>
>> NG
>
>Nigel,
>there is a proper way, but one has to use it.
>
>system version of (system info)
>--10.5.2
>
>It has been like that for a while.
Hi, Deivy.
'system info' was only introduced with AppleScript 1.10.0 in Tiger -- one
system version ago. It doesn't work on any system prior to that. It can
only error to imply "pre-Tiger". It can't tell you what an earlier system
actually is. It thus won't be fully fit for purpose until a few years'
time, when all the machines that can't be updated to or past Panther have
stopped running.
'system attribute "sysv"', on the other hand, works right back to OS
9.2.something. If it's put in a Finder tell block, it'll be recognised by
even earlier systems -- probably all the way back to the introduction of
the scriptable Finder -- as the Finder's 'computer "sysv"' command.
Obviously though, it has a limitation in that it returns binary-coded
decimal which assumes that sub-version and sub-sub-version numbers will
never exceed 9. This has been got round in the "ascv" attribute by
allowing the last four bits to be regarded as ordinary binary and I
suppose most of us would have expected this to be adopted with the "sysv"
attribute as well. But it still only allows numbers up to 15 and I can
see why the designers might want to phase in something more consistent
and expandable to cover future possibilities. It just seems a bit daft to
change the system suddenly with the last two sub-sub-versions of Tiger.
But I may have misunderstood Paul's post. Was "sysv" _meant_ to be
superseded by the other attributes after 10.4.9, or is its incorrect last
number a genuine mistake?
NG
_______________________________________________
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