Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Spotlight, mdfind, and dates

Spotlight, mdfind, and dates
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2001
Location: Providence RI USA
Status: Offline
Reply With Quote
Jun 8, 2005, 10:52 AM
 
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!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:40 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2