Re: Mac OS Version Sniffer
Re: Mac OS Version Sniffer
- Subject: Re: Mac OS Version Sniffer
- From: email@hidden
- Date: Sun, 20 Oct 2002 12:10:17 +0100
Sorry, I think the text in my last posting got mangled. Where it
says'!C', it should be the 'greater than or equal to' symbol.
On Saturday, October 19, 2002, at 09:54 PM, email@hidden wrote:
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.
_______________________________________________
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.