I’m a newbie for ImageJ macro and my code works not perfectly. I want to copy the last measurement directly into the system clipboard. My current method is to clear all the previous measurements first, then measure, then copy the whole Area column. Yet, sometimes I still need the previous measurements as a double check. The following is my code so far:
run("Clear Results"); run("Measure"); String.resetBuffer; for (i=0; i<nResults; i++) String.append(getResult("Area", i) + "\n"); String.copy(String.buffer);
Is there a way to solve this issue? Can I only copy the last Area measurement into the clipboard while still maintaining the previous measurements?
Additionally, is there any website that has a list of all the commands and respective syntexts for ImageJ macro? That would be super helpful for me to learn how to write the code.
Thank you very much!