Login  Register

Re: run() and Macro Recorder ignoring calls to getBoolean()

Posted by Neil Fazel on Jul 24, 2014; 5:56pm
URL: http://imagej.273.s1.nabble.com/run-and-Macro-Recorder-ignoring-calls-to-getBoolean-tp5008839p5008886.html

Hi Herbie,

  Thanks for the reply. Yes, the macro recorder handles Dialog boolean options, but not a pop up created by getBoolean(). For example, I needed to replace

    includeSmallMargin=getBoolean("Include filter data close to the boundary (5 pixels and less)?");

with

    includeSmallMargin=(!getNumber("Include filter data close to the boundary (5 pixels and less)?", 0) == 0);


in order for the macro recorder to generate arguments for it.

Neil

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html