open file with specific partial name
Posted by
Kline, David D. on
May 03, 2013; 5:01pm
URL: http://imagej.273.s1.nabble.com/open-file-with-specific-partial-name-tp5002910.html
Thank you in advance for any help.
We are trying to write a macro that opens a file with a particular word/text in the file name. For example if the file is named "dave_fos_40X.tif" how can we have IJ only open the file that contains the word "foes". This is needed because there may be many files in the same folder with a similar name (e.g., "dave_neurons_40X.tif", "dave_glia_40X.tif"). There is usually only one file with the text "foes" in the folder. We have tried using wildcards and renaming the files with no success. There must be a simple way that I am not seeing.
Any advice is appreciated.
Thanks!
Dave
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html