|
|
10.4: Use Spotlight as a quick and dirty database
iF you have Apple's X11 installed, you might find the oft-overlooked utility "lndir" to be handy.
Simply create a directory, and then invoke this utility and point it to a directory tree, and it will create what it calls a "shadow directory tree" of the original directory in that the new directory will contain symbolic liks pointing at the real files. Example:
The above two lines will create a shadow directory called "parts" in your HOME directory that contains symlinks to all the files on the network share. If the original directory has subdirectories, the directory tree in the new directory will be constructed in the same format, with each file pointing to the appropriate file.
The nice part about this utility is that you can run this script regularly, say every hour or a midnight (depending on how often your network file structure is bound to change), and it will create new symlinks and directories as needed. Alternatively, your nightly/hourly script can remove the Despite one respondant's cry of "EEEW!" regarding your solution, it has good merit. Symlinks don't take up too much space, and it allows you to selectively determine WHAT you want Spotlight to index on your system. Personally, I wouldn't want Spotlight to index every item on my shared network folders... only those that I might have an interest in finding on my Tiger system. I hope this helps! -lar3ry |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|