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 03:26:07 -0700
On Monday, April 8, 2002, at 06:15 PM, Jason Bourque wrote:
tell application "Finder"
version
end tell
Returns 10.1.2 when it should be 10.1.3
Any ideas?
===
on GetSystemVersion()
set sysv to system attribute "sysv"
set temp to (sysv mod 4096)
set vers_major to ((sysv - temp - 256) div 384) as string
set vers_minor to (temp div 16) as string
set vers_update to (temp mod 16) as string
set system_version to vers_major & "." & vers_minor & "." & vers_update
end GetSystemVersion
GetSystemVersion()
===
Be a lot easier if I knew how to use AppleScript's bit shifting
operators. ;-/
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.