Page 1 of 1

How to know on which OS the app is running?

Posted: Mon Mar 26, 2012 4:34 pm
by 3d-swiss
To use commands, that are special to the OS, it would be useful to know on which OS the app is running.

I found two wasy, but both are not quite simple:
put specialFolderPath("desktop") into field "fFolder"
than check if fFolder is empty or not to know which OS is running.
put the machine into field "fMachine"
on Mac 10.7.3 I get "unknown" - nice bug -

Is there a command simple to use?

Re: How to know on which OS the app is running?

Posted: Mon Mar 26, 2012 4:59 pm
by Klaus
Grüezi 3d-swiss :-)

...
put the systemVersion into the_current_running_OS
...
should do what you are looking for :-)


Best

Klaus

Re: How to know on which OS the app is running?

Posted: Mon Mar 26, 2012 5:21 pm
by jacque
Also "the platform" if you need to know the general type of OS.

Re: How to know on which OS the app is running?

Posted: Mon Mar 26, 2012 5:34 pm
by 3d-swiss
Hello jacque and Klaus.

Thanks. Problem solved.

Greetings from switzerland