Detect Window/Mac OS X from a script

Hello,

I've decided to write some scripts I really feel I need, and I would like to get the button placements correct.

Windows: [Accept] [Cancel]

OS X: [Cancel] [Accept]

Is the a function to get the type of host you are running on from the script?

I'll probaby ask more as sometimes feel like I'm in StarWars "I find you lack of documentation quite disturbing" or "These are not the pages you are looking for".

 

Cheers!

 

 

 

Comments

  • App.platform()

    for example

    if ( App.platform() == App.MacOSX ) {     // one layout}else {     // the other layout}

     

  • TotteTotte Posts: 13,514

    Thanks!

    Now off to dig into the CMS from scripts... We need a RRRR random roller directly in DS ;-)

     

Sign In or Register to comment.