Login  Register

isMacintosh boolean in a macro?

Posted by Bill Mohler on Oct 11, 2008; 11:01am
URL: http://imagej.273.s1.nabble.com/isMacintosh-boolean-in-a-macro-tp3694802.html

I've just come across the mismatch in path punctuation in macros
between Mac and Windows:  "/" vs "\\" to demarcate directory levels
when I record a save command in the recorder.

I found an isMacintosh boolean in some of the ij. code.  But I didn't
find an obvious command in the macro language command list that would
let my macro detect the platform it's running on.

Is there an easy way to detect the OS from in a macro, so I can
substitute in the correct punctuation?  I assume that ImageJ is aware
of its environment, but how do I ask it?

Thanks,
Bill