This will prompt you for a directory and get you a list of all files in
that directory, stored in an array called 'files' (or whatever arbitrary
name you choose):
dir = getDirectory();
files = getFileList(dir);
You can then refer to consecutive files using consecutive numbers in the
array index, e.g.: files[0] and files[1].
Use a for loop to go through the entire list:
for(i = 0; i < files.length - 1; i++){
open(dir + files[i]);
open(dir + files[i+1]);
}
-Esteban
On Aug 7, 2015 10:29 AM, "Anish Prasanna" <
[hidden email]> wrote:
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html