Identify OS

bkshepard's icon

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.

Emmanuel Jourdan's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

bkshepard's icon

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

Luke Hall's icon

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

lh