Login  Register

is("global scale") not working on Fiji Macro running on PC

Posted by fmerchant on Mar 09, 2017; 11:05pm
URL: http://imagej.273.s1.nabble.com/is-global-scale-not-working-on-Fiji-Macro-running-on-PC-tp5018267.html



I am running a macro on Fiji with the is("global scale") built-in function without any error on a MAC.
However, when I run the same macro on the PC, I get an error message as shown in the attached image.

A snippet of the macro is

macro "Test" {

if (!(is("global scale")))
{
        Dialog.create("ERROR");
        Dialog.addMessage("Set Scale in MM (millimeters),\nand\ncheck Set Scale GLOBAL before ANALYSIS");
        Dialog.show();
        exit();
}
} //end macro

The message is

Invalid argument in line 4

if (!(is("global scale" <)>))

What am I doing wrong here? Why does it work just fine on the Mac, but fails on a PC?

Thanks
Fatima