Macro to generate stack of different timepoint for different samples

Hi

I am looking to generate a Macro which will iterate over many subfolders to generate numerous stacks
So i have multiple images in subfolders a1,b1,c1 etc and i want all the images within a1 for example to be stacked and saved as a .TIFF.

its basically automating the File -> Import -> Image sequence
however i’m new to generating macros etc

thanks!

Take a look at the BatchMeasure code. It at least covers half of your challenge, although the order that it processes images and subfolders might make it a bit tricky to create the stacks.

https://imagej.nih.gov/ij/macros/BatchMeasure.txt