|
Hello everybody,
sorry, I am just getting into writing macros in Imagj and consider myself as a beginner.
I would be very happy if someone could help out.
I am trying to write a macro, where imagj should open a folder of interest from which I could choose an image of interest (from a pool of files) to be opened and then further processed.
dir = getDirectory("Choose Source Directory ");
list = getFileList(dir);
for (i=0; i<list.length; i++) {
showProgress(i+1, list.length);
open(dir+list[i]);
....
}
This will go through all files in a given folder. But is it also possible to let the user choose which file should be opened from a given folder.
Again, thanx a lot for your help.
cheers, Leimoon
|