Re: Problems running macros and seeing files using getDirectory

Posted by John Hayes on
URL: http://imagej.273.s1.nabble.com/Problems-running-macros-and-seeing-files-using-getDirectory-tp5011627p5011628.html

Hi Matt,

Regarding your main problem, I think you want to use the open function (http://rsb.info.nih.gov/ij/developer/macro/functions.html#open) and not getDirectory (http://rsb.info.nih.gov/ij/developer/macro/functions.html#getDirectory). As the name implies, 'getDirectory' is intended to get directories (i.e., folders) and not files.

Try recording the File->Open operation to give you the correct macro syntax and remember you should not need to pass a filename to the function to get the open dialog during macro execution...

HTH,

John

Le 17 févr. 2015 à 04:23, PEARSON Matthew a écrit :

> Hi all,
>
> Apologies if this has already cropped up on the list but i haven't seen anything about it so far.
>
> I have updated FIJI and find that when i try to run any macro, it reports "running" but nothing actually happens.
>
> The reason i updated it is because when i used getDirectory the directory window would show folders but no images present.  It doesn't matter what type of image file it is.  If i use File>Open outside of the macro i can see the files.
>
> Would appreciate any advice about this.
>
> Thanks,
>
> Matt
>
>
>
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html