Re: Mac OS Version Sniffer
Re: Mac OS Version Sniffer
- Subject: Re: Mac OS Version Sniffer
- From: Sean <email@hidden>
- Date: Fri, 18 Oct 2002 21:33:32 +0100
Hi,
The following steps should do the job
tell application "Finder"
set whatversion to version as number
if whatversion !C 10 then
display dialog "You are running OS X"
else
display dialog "You are running OS 9.2.2 or earlier"
end if
end tell
or
set whatversion to (version of application "Finder")
Under OS 9.2.1 it returns "9.2", under OS X 10.1.2 it returns "10.1.2",
and under OS X 10.2.1 it returns "10.2"
I haven't tested it under other versions of classic OS or Mac OS X but
since the Finder version tends to change with major system revisions,
it should be reasonably accurate.
Sean.
On Wednesday, October 16, 2002, at 11:45 PM, Ken Goff wrote:
Is there an AppleScript that is compatible with both Mac OS 9 and Mac
OS X and that can determine which version of the Mac OS is running?
--
-Ken Goff
MacEssentials
_______________________________________________
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.
_______________________________________________
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.