"Which OS is the standalone running on" object?

Chris Vik's icon

I'm building a toolkit for Windows and Mac OSX. I'd prefer not to create different builds for the two different platforms, however, the way my toolkit handles file/project management is ever-so slightly different for each platform.

My solution would be to create a switch depending on the computer's operating system.

Is there an object that can output which OS the user is on? Or could there be a work-around for this?

Roman Thilenius's icon

back in the days .. [gestalt]

Chris Vik's icon

Thanks for that Roman.

I'll did a search on [gestalt] to get some more information and found a thread with another method to return the OS platform:

;
max getsystem platform

[r platform]

this returns a string of either "windows" or "macintosh" which is all I require in this case.