"Which OS is the standalone running on" object?

Jan 16, 2012 at 2:05am

"Which OS is the standalone running on" object?

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?

#61255
Jan 16, 2012 at 2:26am

back in the days .. [gestalt]

#220823
Jan 16, 2012 at 2:55am

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.

#220824

You must be logged in to reply to this topic.