Re: spaces in path with Bioformats

Posted by ctrueden on
URL: http://imagej.273.s1.nabble.com/spaces-in-path-with-Bioformats-tp5008616p5008730.html

Hi Aryeh,

> I find that the spaces in the path cause the BIo-Formats macro
> extensions to fail

I did not have time to delve into what causes this bug, but perhaps the
whole issue could be avoided by using any scripting language besides ImageJ
macros? If you did that, you could call the Bio-Formats API directly; see:
http://fiji.sc/Bio-Formats#Scripting

Regards,
Curtis


On Tue, Jul 8, 2014 at 4:14 AM, Aryeh Weiss <[hidden email]> wrote:

> I have an external disk whose designation includes spaces. I am running
> OSX 10.9.
> I find that the spaces in the path cause the BIo-Formats macro extensions
> to fail,
> I tried escaping the spaces, as in:
>
> newInputPath = replace(inputPath," ", "\\\\ ");
> Ext.setId(inputPath);
>
> and I tried enclosing the path in square brackets, as in:
> Ext.setId("["+inputPath+"]");
>
> but neither of these worked.
>
> As a workaround, I set up a symlink to the mount point, and then replaced
> the path, as in:
> if (indexOf(inputPath,"Seagate Expansion Drive") > 0) {
>     inputPath = replace(inputPath, "Seagate Expansion Drive", "seagate");
> }
>
>
> and this works fine, but it is a hack.
>
> I prefer one (or both) of two options:
>
> 1. Get the extensions to accept the original path with spaces.
> 2. Get OSX to mount the disk by default with a mount directory whose name
> does not include spaces.
>
> The second option is not about ImageJ, but maybe there are people on this
> list who knowhow to do that.
>
> Thank in advance for your help.
>
> --aryeh
>
> --
> Aryeh Weiss
> Faculty of Engineering
> Bar Ilan University
> Ramat Gan 52900 Israel
>
> Ph:  972-3-5317638
> FAX: 972-3-7384051
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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