MACSCRPT Archives

April 2012

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Christopher Stone <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 2 Apr 2012 17:14:34 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (45 lines)
On Apr 02, 2012, at 07:34, Shane Stanley wrote:
> On 02/04/2012, at 10:01 PM, Christopher Stone wrote:
>> This does NOT work:
>> 
>> mdfind -onlyin ~/Library/Mail/V2/ 'kMDItemFSName == "314912.emlx"c'
>> 
>> It makes no sense to me whatsoever that this last query does not work.
> 
> I think it does if you assume that -onlyin performs a shallow search.
______________________________________________________________________

Hey Shane,

I don't think so.

This works:

mdfind -onlyin / 'kMDItemFSName == "314912.emlx"c'

And this one works:

mdfind -onlyin [log in to unmask]@pop.secureserver.net/ 'kMDItemFSName == "314912.emlx"c'

It is about 6 directories above the file in question.

There's something subtle at work here, or there's a bug.

As I said I can set HoudaSpot (a Spotlight utility) to search only in the /V2/ directory, and it has no problem finding the .emlx file.

This for instance:

mdfind -onlyin /Applications/ 'kMDItemFSName == "*EasyFind.app*"c'

Finds:

/Applications/Utilities/Utilities (Chris)/File Management_Compare_Find_Rename Utilities/EasyFind/EasyFind.app

Which as you can see is not a shallow search.

I don't recall having this sort of problem in Snow Leopard.

--
Best Regards,
Chris

ATOM RSS1 RSS2