Re: Finder Version Wrong in OS X
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.