manipulating saved ROIs in a text editor?

Posted by Bill Christens-Barry on
URL: http://imagej.273.s1.nabble.com/manipulating-saved-ROIs-in-a-text-editor-tp3702662.html

Here's what I want to do, either by macro or plugin:

while (something is true) {
    create a rectangular ROI;
    rename it;
    perhaps make something false;
}
save the ROIs in a file;
open and work with the ROI file in a text editor, recovering
coordinates, width, height, and name for each ROI;

The list archive didn't clue me to doing this, and I'm hunting for
hints. Can anyone offer suggestions?

Thanks.

Bill Christens-Barry