Login  Register

Re: Can ImageJ resolve aliases?

Posted by Fco. Javier Merino Guardiola on Jun 13, 2008; 7:24pm
URL: http://imagej.273.s1.nabble.com/Can-ImageJ-resolve-aliases-tp3695907p3695910.html

I think symbolic links are possible in Windows too, but you need to  
you use NTFS partitions:

http://en.wikipedia.org/wiki/NTFS_symbolic_link


FJMG



El 13/06/2008, a las 17:59, Justin McGrath escribió:

> Mac is now a Unix-like OS isn't it?  Maybe you can use symbolic links
> instead of aliases. I know Java can follow links on Linux.
>
> Use "ln -s targetfile linkname"
>
> Justin
>
> On Fri, Jun 13, 2008 at 10:38 AM, Wayne Rasband <[hidden email]> wrote:
>>> 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
>>