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


Click here to return to the '10.4: Access Spotlight saved searches via the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Access Spotlight saved searches via the Terminal
Authored by: raider on Oct 11, '05 11:39:03AM
The cache saved searches script works as advertised.

An added plus is that the symbolic links are 40k smaller than a finder "Alias" and also, are not subject to the "too many aliases bug" in Tiger 10.4.2. (more info here and here)

The cache saved searches script can be modified to use the current directory, instead of the users saved searches directory - so that you can run it anywhere, in case you don't keep all your saved searches in one place....

In the cache_saved_searches script change this:
# try to read contents of ~/Library/Saved Searches/
my $saved_searches_dir = $ENV{HOME} . "/Library/Saved Searches";
opendir (SS_DIR, $saved_searches_dir)
	or die("Can't find saved searches in '$saved_searches_dir'n");
to this:
# try to read contents of current directory.
use Cwd;
my $saved_searches_dir = cwd();
opendir (SS_DIR, $saved_searches_dir)
	or die("Can't find saved searches in '$saved_searches_dir'n");


[ Reply to This | # ]