In your previous question, I had edited my answer to include the following additional explanations:
You get the name of the current ROI using
Roi.getName()
that you can use to name the results file:current = Roi.getName(); saveAs("Results", "/path/to/results/Results_" + current + ".txt");
Alternatively, you can include the current ROI name in each line of your results by checking Display label in the Analyze > Set Measurements... dialog, resulting in a macro command similar to this:
run("Set Measurements...", "area display redirect=None decimal=3");
Please see the macro language documentation and the ImageJ mailing list archives before posting any new questions related to ImageJ macros.
To save the outlines, you can save the resulting image accordingly, naming it from the ROI name.