Hi Michael,

the list of macro commands at
  https://wsr.imagej.net/developer/macro/functions.html
is essentially complete, with the exception of macro commands starting with "run".

The "run" commands are simply the ImageJ menu commands, and the keywords come from the dialog fields (lowercase and first word only). If the dialog has a checkbox, the checkbox is selected (on) if its keyword is present in the list of options.

Best use the Macro Recorder (Plugins>Macros>Record) to get it right.
This is especially true in cases where multiple commands have almost the same name, such as "AVI..." in File>Save As>AVI... and File>Import>AVI... (In these cases, usually an extra space at the end of the command makes the difference, "AVI..." vs. "AVI... ")


Concerning the Table commands, the documentation page says:

These functions ... operate on the current (frontmost) table or, with most of the functions, an optional title argument can be provided (must be last argument).

This explains why you can write
  Table.setColumn("results", arrayOne, "one");
where "one" is the title of the table.


If you find that a macro command other than one of the "run" commands is missing in the documentation, I guess that Wayne will correct this if he becomes aware that it was missing.


Best,

Michael
________________________________________________________________
On 03.09.24 15:40, Cammer, Michael wrote:
I am looking for  a comprehensive documentation of all macro options.  Help 
would be appreciated pointing me to this.

To write macros, I have relied heavily on the documentation of macro functions 
at
https://wsr.imagej.net/developer/macro/functions.html .
However, I have noticed that some important features are missing.  For instance, the email below 
discusses a "constrain" option in  run("Size..." which I don't see documented.  
Also, testing from the GUI shows that
run("Scale...", "x=0.33 y=[] width=165 height=[] interpolation=Bilinear average 
create")
works fine without a "constrain" option.  This is great added functionality, 
but I wouldn't have thought to try either of these options on my own without this email 
chain or documentation.

Similarly, I had been selecting tables for output before writing to them, but I 
saw in a post here about something else, that the name of the output table may 
be included in the command which makes things much more efficient.  Such as:

Table.setColumn("results", arrayOne, "one");
Table.setColumn("results", arrayTwo, "two");

instead of

selectWindow("one");
Table.setColumn("results", arrayOne);
selectWindow("two");
Table.setColumn("results", arrayTwo);

However, I do not see this documented.

Is there a more comprehensive web page which has all the features of macro 
commands documented?

Best regards-


Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
NYU Langone Health, 540 First Avenue, office MSB 4 111-120 (enter near Tisch, 
cubicle in far back corner)
main lab Smilow C-17, New York, NY  10016
Office: 646-501-0567 Cell (DO NOT TEXT): 914-309-3270  
[email protected]
http://nyulmc.org/micros  http://microscopynotes.com/



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

Reply via email to