I have setup a bunch of saved searched via spotlight. Is there a way that I can access them from command line? Ideally I'd like to do an "ls -l [my search name]" but that doesn't really work.


Use the RawQuery key as an argument for mdfind:

mdfind "$(/usr/libexec/PlistBuddy -c 'Print RawQuery' test.savedSearch)"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .