• 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: Bill Cheeseman <email@hidden>
  • Date: Thu, 17 Oct 2002 06:27:05 -0400

on 02-10-16 6:45 PM, Ken Goff at email@hidden 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?

When you say "which version," do you mean merely distinguishing between 9
and X, or getting the actual version number? Your question is ambiguous.

If you mean just distinguishing between 9 and X, Apple's example scripts use
the technique of trying to execute a script command that is only available
in X, and catching the error to notice that 9 is running.

If you mean the actual version number, in each of my reports on new versions
of AppleScript on The AppleScript Sourcebook, I include a section about how
to tell which version of AppleScript is installed. Some of these sections
deal with getting OS version information, as well. There are two or three
different techniques available, maybe more.

If you need to determine versions going back some time, you have to deal
with the occasional errors in Apple's version information. For example, my
report that dealt with the initial release of Mac OS X talks about how to
work around the complete omission of one form of a version test in one
particular circumstance.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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: 
 >Mac OS Version Sniffer (From: Ken Goff <email@hidden>)

  • Prev by Date: Re: Script Objects
  • Next by Date: RE: Script Objects
  • Previous by thread: Mac OS Version Sniffer
  • Next by thread: Re: Mac OS Version Sniffer
  • Index(es):
    • Date
    • Thread