• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Panther's version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Panther's version (From: Arthur Knapp <email@hidden>)

  • Prev by Date: applescript-users digest, Vol 3 #2139 - 17 msgs ( -Reply)
  • Next by Date: Re: Panther: AppleScript 1.9.2 Release Notes
  • Previous by thread: Re: Panther's version
  • Next by thread: Re: Panther's version
  • Index(es):
    • Date
    • Thread