Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!cwjcc!hal!nic.MR.NET!umn-d-ub!gandreas From: gandreas@umn-d-ub.D.UMN.EDU (Glenn Andreas) Newsgroups: comp.sys.mac.programmer Subject: Re: SysEnvirons and systemVersion Message-ID: <1066@umn-d-ub.D.UMN.EDU> Date: 11 May 89 16:18:14 GMT References: <5692@microsoft.UUCP> Reply-To: gandreas@ub.d.umn.edu.UUCP (Glenn Andreas) Organization: University of Minnesota, Duluth Lines: 30 In article <5692@microsoft.UUCP> stuartb@microsoft.UUCP (Stuart Burden) writes: >I can get all the information from SysEnvirons I need, except an explicit >system version number. What I get returned is an integer. What I need to >know, is how do I relate this to a particular version of the system. > >For example, systemVersion returns 1538 when run on a release 6.0.2. It is simple (enough so that you're going to kick yourself for not thinking of it). 1538 in hex is $0602. >Basically, am I missing something here..? Is there a better way to >determine what system is running, than SysEnvirons? Remember, you should be looking for features provided, not versions whenever possible - test for availability of what you need, rather than saying "Oh, 6.0.2, so this must have what I need" >As an aside to this, how does one determine the finder version also? You could try to read the 'vers' resource in the finder, but this probably wouldn't work under MF, since the finder would be running at the time. You could try using OpenRFPerm for this. >Stu. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= = "Whether you like it, or don't like it, sit | - gandreas@ub.d.umn.edu - = = back and take a look at it, because it's the | Glenn Andreas = = best going today! WOOOOoooo!" - Ric Flair | = =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=