I am trying to create a smart search folder that only searches for items contained within specified folders. I have tried using the "Document Container" attribute, but I can't figure out how to use it correctly. Can someone walk me through an example of creating this kind of smart search?
find
or use something likeNSMetadataQuery
from a Cocoa app or script. You wouldn't be able to use the Finder for the results, though.