Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another question about links' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another question about links
Authored by: Anonymous on Mar 30, '01 02:35:59AM

VERY cool... definitely an oversight on Apple's part.

Does anyone know why creating a soft link in the terminal creates an alias in the Finder, but creating an alias in the finder only creates an empty zero byte file in the bsd filesystem?

Has anyone figured out a way to make an Applescript to hunt down aliases and change them into slinks? I don't see how you could do it with a shell script, since the finder doesn't seem to keep the alias data in these files..

This kind of reduces the functionality of find and grep, if they're not alias-aware.

Any ideas?



[ Reply to This | # ]
Re: Another question about links
Authored by: Anonymous on Mar 30, '01 06:21:05AM

The Mac OS X Finder displays the Softlink as an Alias to the GUI-User. Its still just a softlink. (Mac OS 9.0.4 didn't recognize softlinks as anything useful, I don't know if Mac OS 9.1 does. In fact, when Public Beta was booted under Classic Mac OS, you could open a soft-link with a text-editor like Alpha and it contained just the full UNIX-Path of the Destination)

On the other hand an Alias is a special file, too, but the data is stored in the resource fork. BSD doesnt make any use of that data, thus the file appears empty (0 bytes). If you format your partitions with UFS you might always get softlinks, I don't really know.
However, traditional alias files have the advantage that they don't break if the target file/folder is moved to another directory.



[ Reply to This | # ]
Re: Another question about links
Authored by: Anonymous on Mar 31, '01 12:07:26AM

The dichotomy about aliases created in the Finder verses BSD slinks also allows aliases created in OS X to work in OS 9 - nice if you switch back and forth from X to 9. But the dock not recognizing aliases while recognizing slinks is definately a bug in my book.

Jim



[ Reply to This | # ]