Forum Moderators: travelin cat

Message Too Old, No Replies

Mac OS Version

         

gsdutt

8:24 pm on Apr 29, 2003 (gmt 0)

10+ Year Member



Hi,

Is there a way to find out the Mac OS version through Javascript?

Thanks,

Macguru

10:50 am on Apr 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi gsdutt,

I have never seen such a script. It is easy to find out wich hardware Macs users are running with this :

var is_mac = ua.indexOf('mac') > 0;
var is_mac68k = (ua.indexOf('68k') > 0 ¦¦ ua.indexOf('68000') > 0);
var is_macppc = (ua.indexOf('ppc') > 0 ¦¦ ua.indexOf('powerpc') > 0);

But I dont recall seeing Mac OS versions in any logfile...

I believe the HTTP protocol defines the User-Agent header which uniquely identifies the browser, not the OS. I guess it could be possible to sort Mac OS X from other Mac OS with a browser version sniffer written to detect user agents specifically written for Mac OS X. This script could live with a lot of coding challenges and maintenance.

I will page a few members very good at Scripting for a little help...