Re: Can ImageJ resolve aliases?
Posted by
Wayne Rasband on
Jun 13, 2008; 3:38pm
URL: http://imagej.273.s1.nabble.com/Can-ImageJ-resolve-aliases-tp3695907p3695908.html
> Hello list members,
>
> The only way I can use aliases (shortcuts) is:
> - drag & drop an alias onto the ImageJ microscope icon,
> - or choose menu File>Open ect.
>
> However, both are manual operations. I didn't succeed to resolve an
> alias in an automated way such as via macro; also, drag & drop an
> alias onto the ImageJ main window does not work. I tried this on a
> Mac.
>
> I'd like to organize my project folders so they partly contain aliases
> and would like to have full macro access to all items in the folder.
>
> Has anyone experience with aliases and Java?
This appears to be a Java problem. The File.getCanonicalPath() method,
which ImageJ calls when you drag a file or folder on the "ImageJ"
window, does not resolve alias and shortcuts. They are resolved if you
use File>Open, but not if you are using JFileChooser, which is written
in Java.
-wayne