Re: ImageJ does not wait for ImageJ
Posted by
Gabriel Landini on
Sep 17, 2013; 12:43pm
URL: http://imagej.273.s1.nabble.com/ImageJ-does-not-wait-for-ImageJ-tp5004817p5004823.html
On Tuesday 17 Sep 2013 13:16:43 you wrote:
> Thanks!
>
> It seems I missed the logic. I thought ImageJ takes the next-to-last
> image (created by the duplicate command) when the last image is closed.
> This is obviously not (always) the case...but in the majority.
>
> Why then had selectWindow() the same effect as the wait() command....
> that however, still does not seem to be very logic to me.
>
> ... what do I miss here?
I think that you are not selecting the right images
>> for(i=0; i<n; i++) {
>> name=getTitle();
I bet that this is not cycling through all open images.
Perhaps you need to generate an array of titles, then use the variable i to
select the ith image name in the array.
Cheers
G
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html