Re: Mac OS X Finder views
Re: Mac OS X Finder views
- Subject: Re: Mac OS X Finder views
- From: Philip Aker <email@hidden>
- Date: Thu, 18 Jul 2002 04:48:17 -0700
On Wednesday, July 17, 2002, at 02:35 PM, Emmanuel wrote:
At 6:39 PM +0200 17/7/02, Robert C. Jacobson wrote:
tell application "Finder"
set vers to the version as string
end tell
returns "10.1.2" (even though I'm 10.1.5! )
And what about "product version"?
--> ""
Try this:
on NumVersion(theNumber)
--NB: Doesn't account for release status
set temp to (theNumber mod 256)
set vers_major to (theNumber - temp) div 256
set {vers_minor, vers_update} to {(temp div 16), (temp mod 16)}
return {vers_major, vers_minor, vers_update}
end NumVersion
on GetSystemVersion(theNumber)
-- NB: MacOS versioning mechanism started in System 6?
set sysv to NumVersion(theNumber)
set major to ((item 1 of sysv) div 4)
return "" & (major + 6) & "." & item 2 of sysv & "." & item 3 of sysv
end GetSystemVersion
GetSystemVersion(system attribute "sysv")
--a bientot
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.