I want to locate files using mdfind based on the meta-data tag kMDItemLastUsedDate (or any meta-data using a date for that matter). However, Apple's
prescribed method does not work for me in terminal:
Code:
mdfind "kMDItemFSContentChangeDate == $time.this_week" -onlyin "~"
Whereas something like this works fine:
Code:
mdfind 'kMDItemMediaTypes == "Sound" ' -onlyin "/~" | sort -fd | uniq
What's the trouble with date? Eventually, I want to use this query in an AppleScript do shell script.
TIA!