Identify OS

Nov 20, 2009 at 1:58am

Identify OS

Is there a quick and easy way to identify the OS that a patcher is opened in? [gestalt] seems really clunky and doesn’t look like it handles the various flavors of Windows. I’m not looking for something really elaborate, just something that would identify that the user is in say, OSX or OS9 on a Mac, or XP, Vista or W7 on a PC.

#46536
Nov 20, 2009 at 3:38am

You can use the getsystem message to max to identify the platform. I’m not sure about the OS difference.

– Pasted Max Patch, click to expand. –
#167456
Nov 20, 2009 at 4:17am

Thanks Emmanuel, that gets me started in the right direction.

#167457
Nov 20, 2009 at 10:17am

You could query max.os and max.osversion in javascript.

lh

#167458

You must be logged in to reply to this topic.