http://imagej.273.s1.nabble.com/Recursive-processing-of-a-directory-not-working-correctly-tp5007797p5007881.html
You are awesome! Thanks for the info! I assumed it was something like this, but I have not had the time to try anything in our biophotonics core yet.
Hello Matthew,
in your macro 'path' is only the string that represents the file-names
and folder-names starting at the selected directory. You have to use
'inBase + path' to get the full path.
> if (File.isDirectory(inBase + path))
will work. If you have a look at
> run("Bio-Formats Windowless Importer", "open=["+inBase + path+"]
color_mode=Default view=Hyperstack stack_order=XYCZT");
there you use the same combination.
Best regards
Michael
Am 23.05.2014 01:12, schrieb Matthew Jacobs:
> Oops... just a heads up to anyone trying to use this code in the future. I
> tried applying the suggested:
>
> if (File.isDirectory(path))
>
> in place of the endswith / from my original code and it is not working. I
> clearly need to change that bit of code somewhat to make it work.
>
> If you replace that single line with the original from my first post, things
> should work (even if it is not elegant in any way haha).
>
>
>
> -----
> Matthew Jacobs,
> Research Assistant
> Callaway Neuroscience Laboratory
> The Salk Institute for Biological Studies
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Recursive-processing-of-a-directory-not-working-correctly-tp5007797p5007867.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html
>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html
To unsubscribe from Recursive processing of a directory not working correctly,
click here.
NAML