• 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: Finder Version Wrong in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Version Wrong in OS X


  • Subject: Re: Finder Version Wrong in OS X
  • From: Philip Aker <email@hidden>
  • Date: Tue, 09 Apr 2002 15:14:06 -0700

Hi!

--How's this? Should be good for System 7 and newer
--
on NumVersion(theNumber)
set {vers_major, temp1} to {(((theNumber - 1024) div 1024) + 7), (theNumber mod 1024)}
set {vers_minor, vers_update} to {(temp1 div 16), (temp1 mod 16)}
set system_version to "" & vers_major & "." & vers_minor & "." & vers_update
end NumVersion
--

--test
{NumVersion(system attribute "sysv"), NumVersion(2144)}



Philip Aker
http://www.aker.ca
_______________________________________________
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: 
 >Re: Finder Version Wrong in OS X (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Finder Version Wrong in OS X
  • Next by Date: Re: Inheritance implementation question
  • Previous by thread: Re: Finder Version Wrong in OS X
  • Next by thread: Re: Finder Version Wrong in OS X
  • Index(es):
    • Date
    • Thread