BatchProcessor question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

BatchProcessor question

ved sharma
Hello,

I need to run Process > Batch > Macro... command on an Input directory with a macro, which goes something like:

run("8-bit");
print(???);

What I want at ??? is some command which will print the name of the Output directory in the log file. Is this possible?

Thanks!

Ved
___________________________________
Ved Sharma, PhD
Department of Anatomy and Structural Biology
Albert Einstein College of Medicine
Bronx, New York

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: BatchProcessor question

Rocco D'Antuono
Hi Ved, when you fill the textfields of Process/Batch/Macro, you are asked to insert the path of output folder, so in theory you know which is.
Otherwise you could retrieve the path of an image saved in the output folder with the following commands

path=getDirectory("image");
print(path);

Hope this could help you,
Rocco
Senior Microscopist
Crick Advanced Light Microscopy facility (CALM)
The Francis Crick Institute
1 Midland Road, NW1 1AT, London (UK)
https://roccodant.github.io/