Grab System OS Value

Feb 18, 2009 at 7:10pm

Grab System OS Value

I’m trying to grab the OS value (ie: Windows/Mac) that the patch is currently running on via javascript but i’m having trouble using the ‘OS’ property as stated under ‘The Max Object’ help section.

Can anyone point me into the right direction? Or have a working example of how to grab the OS value?

Thanks

#42384
Feb 18, 2009 at 8:08pm

Quote: Visibleman wrote on Wed, 18 February 2009 20:10
—————————————————-
> I’m trying to grab the OS value (ie: Windows/Mac) that the patch is currently running on via javascript but i’m having trouble using the ‘OS’ property as stated under ‘The Max Object’ help section.
>
> Can anyone point me into the right direction? Or have a working example of how to grab the OS value?

Try this:

if (max.os == “macintosh”)
// this is mac.
else
// this is windows

ej

#151704
Feb 18, 2009 at 11:03pm

Thanks, worked a charm!

#151705

You must be logged in to reply to this topic.