I am using the EDF p;ugin in a macro as follows:
run("EDF Easy ", "quality='2' topology='2' show-topology='off'
show-view='off'");
The problem I have is that teh macro does not wait for EDF to finish,
and EDF can take a while.
My solution to this is based on the fact that EDF creates a window
called "Output". so I did the following:
initTime = getTime();
while ( !isOpen("Output") ) {
elapsedTime = getTime() - initTime;
if (elapsedTime%10000 == 0) {
print(elapsedTime/1000, " seconds elapsed");
wait(10);
}
which works (as long as there is no other window called "Output"). I
print an occasional reminder that the macro is still alive within this
wait loop.
Is there a better way to do this?
--aryeh
--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel
Ph: 972-3-5317638
FAX: 972-3-7384051
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html