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

Hierarchical menus from a folder alias in the dock Desktop
A hierarchical menu will not work for an alias to a folder in a Dock folder if it is created by the contextual menu 'Make alias' command. This must be done [for now] from the command line:
ln -s [path/to/linked/directory] [name of Alias]
-- creating a seamless menu to that aliased folder within a pop-up menu from the dock:)

A related tip: Find the folder you wish to alias in the finder window and drag it onto the terminal window to copy the full path.

I've placed my Apps and Home on the Dock with symbolically linked folders to my Classic Documents and Apps folders (which is much tidier than intermingling and copying over to my OS X native partitions.) One could also create a "Favorites" pop-up in the same way ...

I know credit is due somewhere else, but I can't find the reference anywhere - so I felt compelled to share. Hope this makes your navigation that much better, easier.
    •    
  • Currently 1.75 / 5
  You rated: 1 / 5 (4 votes cast)
 
[4,779 views]  

Hierarchical menus from a folder alias in the dock | 5 comments | Create New Account
Click here to return to the 'Hierarchical menus from a folder alias in the dock' 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 | # ]
Question
Authored by: Anonymous on Mar 30, '01 08:23:20AM

When I tried your comments, I found that I could create the symbolic link to various directories in my home folder so that I could use them in the Dock... however, if I didn't use -s, it told me that the operation was not permitted... why would that be? Also, how can I reference files in terminal that have spaces in them, i.e, Dock Additions... could only get it to be recognized by Dock_Additions in Finder...

Thanks



[ Reply to This | # ]
RE:Question
Authored by: Anonymous on Mar 30, '01 09:49:39AM
To accommodate spaces use the single quote character (or, really the foot mark?) -- (') around the entire path.
ln -s 'ABC Directory/your folder name' 'soft link name'
In Beta, you could use the backslash right before the space to signify a space that would be literally interpreted. (*Can't show an example; the backslashes get removed when published on this post.)

[ Reply to This | # ]