Spotlight created:today and mdfind

Reading various sites and "OS X missing manual" I was lead to believe that typing

created:today

in spotlight should produce all files created today. This however does not work for me in Snow Leopard.

Even more if you try

$ mdfind -interpret "created:today"

from the command line you get:

Failed to create query for '( || || (kMDItemCreationDate = "today*"cdw))'.

However, the following does work:

created:10/09/09

Note also that the short date format has to be typed as it is defined in your system date format preferences (which for Canada is set to yy-mm-dd which is completely wrong. We don't write dates like that here, but that's another topic altogether).

So, anyone got any ideas why symbolic today doesn't work in created:today?

Mac Pro, 8 Core, 32 GB RAM, nVidia Ge 8800 GT, 2 TB storage, 30'' Cinema Display, Mac OS X (10.6.1), 24'' iMac, 13'' Aluminum Macbook 2.0 GHz, 3G iPhone

Posted on Oct 9, 2009 6:28 AM

Reply
4 replies

Oct 11, 2009 5:37 PM in response to MarioGrgic

Maybe.

One way to do it is as follows. In the finder window, ⌘+f. Then click the '+' sign to the right of the Save button. Click on the pull-down that reads "Kind", and choose "Created date". Click on the pull-down that reads "within last", and choose "today". If you wish to save it click save, give it a name. if you do this search often look for this file in the Finder and drag it to the toolbar.

I'm thinking that the reason that "created:today" isn't working is that to get the entire day is a range. If you step through the exercise above and then look at the file that's created you'll see the following among other things.


InRange(kMDItemContentCreationDate,$time.today,$time.today(+1))

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Spotlight created:today and mdfind

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.