For example: find all folders containing videos.
This would really make my life SO much simpler. I don’t think it’s possible as a straight search in Spotlight, but perhaps a script, a different search tool?
For example: find all folders containing videos.
This would really make my life SO much simpler. I don’t think it’s possible as a straight search in Spotlight, but perhaps a script, a different search tool?
It’s searching for directories based on the type of files contained within them- perhaps there is a Unix command which works?
Since it is possible to find empty folders, it seems it must be possible to find folders which are not empty by other criteria…
I’m not very good with shell commands, but here’s one way in Unix:
find / -type d -exec Has_vid {} ; -print
Replace / with whatever top-level directory in which you want to search. For Has_vid you need to write a script that tests a directory. I used
#!/bin/tcsh
echo $1/*.{flv,mp3,FLV,MP3,mkv} >& /dev/null
As you can see it just searches for filenames with any of several specified suffixes (for which I show only a few examples). I’m sure there’s a way to cram such a command into the find and get a one-liner, but the syntax may get awkward.