From: Benjamin Reed Date: 2008-01-11T06:50:49+09:00 Subject: Re: Detect Mac OS X Version On Jan 10, 2008 4:40 PM, Filipe wrote: > After Googling for a while I couldn't find a way of detecting the Mac > OS X version ruby is running on. I tryed the RUBY_PLATFORM constant > but it only tells me I'm running Mac OS, not its version. > > Is there any other way of detecting wether the script is beeing run on > 10.4 or 10.5? you can always run "sw_vers -productVersion" as a system command... -- Benjamin Reed a.k.a. Ranger Rick Fink, KDE, and Mac OS X development http://www.racoonfink.com/