Hi everyone,
ImageJ version 1.47i included this update: "Fixed a bug that caused the String.copyResults() macro function to ignore selections, which is not consistent with the Results window's Edit>Copy command." However, this has broken one of my macros and I can't find a simple fix. As it's written, my macro generates output in the results table then copies the whole set of results using String.copyResults() and String.paste(). This doesn't work now. I figured out what the issue is but can't solve it. Before 1.47i, using String.copyResults() copied the whole set of results, no matter what. Now, if you select a specific row, it will copy only that row. HOWEVER, If you do not select a row, it will not copy anything. The only way to copy the whole results table is to select all rows. This seems reasonable, but I can't figure out a way to select any rows of the results table automatically in a macro. I can only do it by hand. Is there a way to specify which rows to copy using macro code? I could probably write something to explicitly copy all the fields in the results table and use that, but it seems like the String.copyResults() function is worthless for anyone using it in a macro now unless there is also a way to specify which rows to copy. Is there a way to do this? Or is there another simple way to copy the complete results set?? Thanks in advance for any help. -Jason |
On Jul 8, 2013, at 8:04 PM, JasonR1234 wrote:
> Hi everyone, > > ImageJ version 1.47i included this update: "Fixed a bug that caused the > String.copyResults() macro function to ignore selections, which is not > consistent with the Results window's Edit>Copy command." > > However, this has broken one of my macros and I can't find a simple fix. As > it's written, my macro generates output in the results table then copies the > whole set of results using String.copyResults() and String.paste(). This > doesn't work now. I figured out what the issue is but can't solve it. The ImageJ 1.48a daily build fixes a bug that caused the "Results" window Edit>Copy command, and the String.copyResults() macro function, to not work if there was only one line in the table. -wayne > Before 1.47i, using String.copyResults() copied the whole set of results, no > matter what. Now, if you select a specific row, it will copy only that row. > HOWEVER, If you do not select a row, it will not copy anything. The only way > to copy the whole results table is to select all rows. This seems > reasonable, but I can't figure out a way to select any rows of the results > table automatically in a macro. I can only do it by hand. Is there a way to > specify which rows to copy using macro code? > > I could probably write something to explicitly copy all the fields in the > results table and use that, but it seems like the String.copyResults() > function is worthless for anyone using it in a macro now unless there is > also a way to specify which rows to copy. Is there a way to do this? Or is > there another simple way to copy the complete results set?? > > Thanks in advance for any help. > > -Jason > > > > -- > View this message in context: http://imagej.1557.x6.nabble.com/Bug-in-String-copyResults-tp5003825.html > Sent from the ImageJ mailing list archive at Nabble.com. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |