How to know on which OS the app is running?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
3d-swiss
Posts: 39
Joined: Thu Nov 06, 2008 9:11 pm

How to know on which OS the app is running?

Post by 3d-swiss » Mon Mar 26, 2012 4:34 pm

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?

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Mon Mar 26, 2012 4:59 pm

Grüezi 3d-swiss :-)

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


Best

Klaus

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7392
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Mon Mar 26, 2012 5:21 pm

Also "the platform" if you need to know the general type of OS.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

3d-swiss
Posts: 39
Joined: Thu Nov 06, 2008 9:11 pm

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

Post by 3d-swiss » Mon Mar 26, 2012 5:34 pm

Hello jacque and Klaus.

Thanks. Problem solved.

Greetings from switzerland

Post Reply