Login  Register

Re: How do you open files that have brackets in the filename in a macro?

Posted by CARL Philippe (LBP) on Apr 30, 2017; 1:05pm
URL: http://imagej.273.s1.nabble.com/How-do-you-open-files-that-have-brackets-in-the-filename-in-a-macro-tp5018579p5018640.html

Dear написа:,
In the case you want to go into this direction, you can indeed dowload an ad hoc tool for each needed application (files renaming, files comparison, FTP,...).
Or rather use a kind of "Swiss knife" tool as Total Commander:
https://www.ghisler.com/index.htm
which will allow you to do all this in one:
https://www.ghisler.com/screenshots/en/06.html
https://www.ghisler.com/screenshots/en/07.html
https://www.ghisler.com/screenshots/en/04.html
...
Have  nice week-end,
Philippe

Le Samedi 29 Avril 2017 23:07 CEST, Stoyan Pavlov <[hidden email]> a écrit:

> Or you could simply use a file renaming tool like AntRenamer ?(
> http://www.antp.be/software/renamer/features)
>
> На 21.04.2017 г. 5:41 сл.об. "Jeff C Hanson" <[hidden email]>
> написа:
>
> > Thanks for the tips on dealing with filenames with brackets in them.
> > Renaming the files so they didn't have brackets would be the easiest thing
> > to do -- thanks, Michael for the simple windows command for stripping them
> > out.  However, just using the plain "open" command worked, too (thanks,
> > Kees for showing that it worked).  With some googling, I was able to find
> > the macro extension command equivalent of the open command to use
> > BioFormats.  The following was able to open my file with brackets in the
> > filename:
> >
> > // Load Bio-Formats extensions so that the "Ext." bioformats commands are
> > available.
> > run("Bio-Formats Macro Extensions");
> > file = "awkward_filename_[39254,8006]_component_data.tif";
> > Ext.openImagePlus(file);
> >
> >
> > Thanks again everyone,
> > Jeff
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html





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