First of all, I’d like to thank all of you for partaking to this wonderful collaborative experience. You girls/guys prove that collaboration is more powerful than competition and I can’t thank you enough for that. We need more of this, especially within the academic world.
Now let’s get back to work…
I am a pure noob in the world of macros, so let me explain what I am trying to do:
- all my images have the same name (eg. C0001.tif)
- each image is located in a different directory (eg. Mol1_Date1; Mol1_Date2; Mol2_Date1; Mol2_Date2)
=> I’d like to open the images only located in the directories containing “Mol1” in their name/path.
=> then I’d like to save a copy of each with the name of their own directory, within their own directory… (does it make sense for anyone so far?)
- now I should have several .tif files* like Mol1_Date1.tif; Mol1_Date2.tif in their respective directory.
=> finally, I’d like to run the macros I recorded on every .tif files containing Mol1 in their name
Here is the 1st macro I use. It is very simple and I think I’ll be good for the other processes/macros I wanna run.
open("C:\\path\\image.tif"); call("ij.ImagePlus.setDefault16bitRange", 16); run("Appearance...", "antialiased menu=15 16-bit=[16-bit (0-65535)]");16); run("Set Measurements...", "area mean min area_fraction display redirect=None decimal=3");16); run("Properties...", "channels=1 slices=1 frames=1 unit=pixel pixel_width=1 pixel_height=1 16); voxel_depth=1 global");16); run("Measure");16); close();
Thank you all for your kindness and your time.