http://imagej.273.s1.nabble.com/Macro-in-Plugin-Menu-fails-to-run-tp5008423p5008442.html
I tested the macro, it´s working fine. Just remove the command
selectWindow() at the beginning. SelectWindow requires the title of an
image.
> Hi All,
>
>
> I've been working on a macro to automate selection of 3D ROIs. The macro
> itself is working great; I can pull it up in the script editor and it runs
> correctly. However, I'm going to need to call it from the plugin menu,
> and that isn't working. Right now I have it saved under Fiji -> Fiji.app
> -> plugins as "Cell_nuclei_macro_x.ijm". It shows up in the plugins menu
> as "Cell nuclei macro x". If I click on that, the "status bar" on the
> Fiji main window reads "Command finished: cell nuclei macro x", but
> nothing actually happens. I think this is something specific to my macro,
> not my Fiji install, as another macro I made (a simple macro that simply
> turns the image binary and saves it) works just fine under the same
> circumstances: saved under Fiji -> Fiji.app -> plugins as
> "Sample_binary.ijm", shows up in the plugins menu as "Sample binary", runs
> correctly from the script editor AND from the plugins menu. I'm pretty
> lost as to how to troubleshoot this issue. Any ideas?
>
>
> I have attached links to:
>
> The macro that won't work from the plugin menu
> (
https://docs.google.com/file/d/0Bw4MsPRmUoyIUGF3ejlWS2taOWs/edit)
>
> The macro that does work from the plugin menu
> (
https://docs.google.com/file/d/0Bw4MsPRmUoyIT0JYeHc2M1EwMTQ/edit)
>
> A sample image that I've used to test these macros
> (
https://docs.google.com/file/d/0Bw4MsPRmUoyINktTc1FhQlBKUVk/edit?)?
>
>
> Thanks in advance!
>
>
> Kaitlin Snider
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
>
Thomas Boudier, Associate Prof. UPMC,
IPAL UMI 2955, Singapore.