• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mac OS Version Sniffer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Fwd: Mac OS Version Sniffer (From: email@hidden)

  • Prev by Date: Re: "choose file name" Redux
  • Next by Date: Re: Applescript for printing to .pdf
  • Previous by thread: Fwd: Mac OS Version Sniffer
  • Next by thread: Re: Mac OS Version Sniffer
  • Index(es):
    • Date
    • Thread