On Feb 21, 2011, at 07:22, Bruce Robertson wrote: Something is happening; but we don't know what it is - do we, Mr. Stone. ______________________________________________________________________
Hey Bruce,
Unfortunately not.
I too have a strange issue (involving 'mdls' and a few applications it doesn't see properly), which other folks do not. I'm going to repair permissions later today and see if that fixes anything. I think I'll also rebuild my Spotlight indices.
What do you get if you run this one?
set cmd to "mdfind -onlyin /Applications/ 'kMDItemFSName == \"*.app\"c'" do shell script cmd
I get 472 items.
If I run:
set cmd to "mdfind -onlyin /Applications/ 'kMDItemKind == \"Application\"'" do shell script cmd
I get 472 items as well.
If I search the Applications folder for items which end with '.app' with File Buddy I get 472 items.
If I search the Applications folder with File Buddy for items which are an 'application' I get 476 items.
Parsing the differences - the extra items I find are:
Little Snitch Configuration.app NetFinder.app Register WhiteNoise.app
Register turns out to be a little classic application that comes with Tex-Edit Plus: kMDItemKind = "Classic Application"
None of the others identify as applications, and strangely they cannot be found by 'name' with the normal find-by-name Spotlight search in the Finder (Command-Shift-F).
I was able to find them by searching for "filename:<name>". Again; strange.
If repairing permissions and rebuilding SL indices does not solve these peculiarities I'll contact the developers.
Oh; BTW: In case you didn't know TextWrangler (freeware) & BBEdit both have a command line tool to redirect output to them. In general I find that more convenient than dumping to a file. BBEdit also has MPW-like worksheets, so you can run command line tools directly as well.
TextWrangler: ls -1lF | edit BBEdit: ls -1lF | bbedit
-- Best Regards, Chris |