Re: Panther's version
Re: Panther's version
- Subject: Re: Panther's version
- From: Walter Ian Kaye <email@hidden>
- Date: Fri, 7 Nov 2003 15:06:50 -0800
At 04:49p -0500 11/07/2003, Arthur Knapp didst inscribe upon an
electronic papyrus:
Yup, I upgraded.
version --> "1.9.2"
set ksPantherVersion to "1.9.2"
version = ksPantherVersion --> false
version < ksPantherVersion --> error 'Can't make "1.9.2" into a
number, date, or text'
Dang... looks like Apple keeps changing what a version is.
In Mac OS 7.6.1, both Finder and AppleScript return the version as a
version class. In Jaguar, AppleScript still does, but Finder returns
it as Unicode text.
I suspect multiple coercions going on in Arthur's code.
Unicode text != string.
A version class can be coerced to a real, but Unicode text cannot,
nor can a string (because the n.n.n format is not a valid number).
And while the *coercion* works on 7.6.1, it returns 1.01 instead of 1.1.
Wasn't there some hullabaloo about AppleScript's version being on the
wrong side of the value? Looks like that was fixed at some point
between 7 and X.
In Jaguar:
version
{class of result, result as real}
--> {version, 1.91}
-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.