On Jun 17, 2011, at 7:26 AM, Dan wrote:
>
> I'm thinking maybe Spotlight is falling into some abyss in its index, caused
> by bad processing of these corrupted jpegs.
>
> Any ideas on how to find 'em?
The mdls command line tool, which lists medata for files, coupled with a find
command looking for jpegs, you may be able to find what you're looking for.
NAME
mdls -- lists the metadata attributes for the specified file
SYNOPSIS
mdls [-name attributeName] [-raw [-nullMarker markerString]] file ...
DESCRIPTION
The mdls command prints the values of all the metadata attributes associ-
ated with the files provided as an argument.
It looks at the existing index, so it may not find what you're loking for
here's what it does for a random jpeg on my desktop:
Frankenmac:desktop johnson$ mdls lihom.jpg
kMDItemBitsPerSample = 32
kMDItemColorSpace = "RGB"
kMDItemContentCreationDate = 2011-05-18 15:53:29 -0700
kMDItemContentModificationDate = 2011-05-18 15:54:30 -0700
kMDItemContentType = "public.jpeg"
kMDItemContentTypeTree = (
"public.jpeg",
"public.image",
"public.data",
"public.item",
"public.content"
)
kMDItemCreator = "Adobe Photoshop CS5 Macintosh"
kMDItemDisplayName = "lihom.jpg"
kMDItemEXIFVersion = "2.2.1"
kMDItemFSContentChangeDate = 2011-05-18 15:54:30 -0700
kMDItemFSCreationDate = 2011-05-18 15:53:29 -0700
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 1024
kMDItemFSHasCustomIcon = 1
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = 0
kMDItemFSLabel = 0
kMDItemFSName = "lihom.jpg"
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 502
kMDItemFSSize = 143671
kMDItemFSTypeCode = ""
kMDItemHasAlphaChannel = 0
kMDItemKind = "JPEG image"
kMDItemLastUsedDate = 2011-05-18 16:04:46 -0700
kMDItemOrientation = 0
kMDItemPixelCount = 480000
kMDItemPixelHeight = 600
kMDItemPixelWidth = 800
kMDItemProfileName = "Generic RGB Profile"
kMDItemResolutionHeightDPI = 72
kMDItemResolutionWidthDPI = 72
kMDItemUsedDates = (
"2011-05-18 00:00:00 -0700"
)
Worth a try.
--
Bruce Johnson
"Wherever you go, there you are" B. Banzai, PhD
--
You received this message because you are a member of G-Group, a group for
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/g3-5-list