Install the macro unsuccessful
Posted by Xulong Wang on Jan 07, 2011; 7:48pm
URL: http://imagej.273.s1.nabble.com/Install-the-macro-unsuccessful-tp3686053.html
Hi All,
I am trying to write my macro, but confused on the first step, so I wrote
this small macro as below, it runs well. Then I saved it into the plugin
folder as my1stmacro.txt. According to the documents, I have already
installed the macro, and should be able to see it under the plugin submenu,
however I did not, looks I did not install it properly, so the imageJ does
not know this macro. I also tried Plugin/Install Did not work neither. I
am able to put this macro into the tool menu and it works well, pretty
convenient. But I am just wondering why I did not install the macro
properly? I think I followed exactly what the document says.
System: Mac Snowpoad. Java, most updated. Thanks in advance.
macro "XL OPEN Action Tool - C902T3f18O" {
dir = getDirectory("Choose Directory ");
list = getFileList(dir);
setBatchMode(false);
for (i=0; i<list.length; i++) {
open(dir+list[i]);
}
}