Re: IMAGE IPTC metadata
Re: IMAGE IPTC metadata
- Subject: Re: IMAGE IPTC metadata
- From: Bill Briggs <email@hidden>
- Date: Fri, 20 Jan 2006 17:41:31 -0400
At 10:11 PM +0100 1/20/06, Helmut Fuchs wrote:
>At 12:13 Uhr -0800 20.01.2006, Stockly, Ed wrote:
>>I'm looking for the most efficient way via appleScript to get an images IPTC metadata, given the file's path.
>If you are on Tiger try using "mdls /my/image/file" in the shell - this is the spotlight tool to list metadata available for specific files. As far as I can remember this only works as soon as Spotlight has actually integrated the file in its database. But give it a try - it's very quick.
That appears to be true. Metadata is given for files that have been on the Mac for a while, but newly downloaded files don't show any.
On my PowerBook just now the results took several seconds to come back, but the mds process was running at the time and using a lot of CPU cycles, so maybe that slows down its query of its own database. Hadn't seen that before. After the process stopped I got the results at the usual speed. Here's what a jpg yielded. Note the content type tree, which is relevant to a discussion back in November when Paul was asking about type identifiers.
- web
kMDItemAcquisitionMake = "Canon"
kMDItemAcquisitionModel = "Canon PowerShot A520"
kMDItemAperture = 5.3125
kMDItemAttributeChangeDate = 2005-10-30 16:56:25 -0400
kMDItemBitsPerSample = 32
kMDItemColorSpace = "RGB"
kMDItemContentCreationDate = 2005-10-30 15:21:39 -0400
kMDItemContentModificationDate = 2005-10-30 15:21:39 -0400
kMDItemContentType = "public.jpeg"
kMDItemContentTypeTree = ("public.jpeg", "public.image", "public.data", "public.item", "public.content")
kMDItemDisplayName = "IMG_0884.JPG"
kMDItemEXIFVersion = "2.2"
kMDItemExposureMode = 0
kMDItemExposureTimeSeconds = 0.001
kMDItemFinderComment = "width/height: 2272 x 1704 resolution: 180 dpi Canon PowerShot A520"
kMDItemFlashOnOff = 0
kMDItemFocalLength = 23.1875
kMDItemFSContentChangeDate = 2005-10-30 15:21:39 -0400
kMDItemFSCreationDate = 2005-10-30 15:21:39 -0400
kMDItemFSCreatorCode = 0
kMDItemFSFinderFlags = 0
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSLabel = 0
kMDItemFSName = "IMG_0884.JPG"
kMDItemFSNodeCount = 0
kMDItemFSOwnerGroupID = 501
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 2186191
kMDItemFSTypeCode = 0
kMDItemHasAlphaChannel = 0
kMDItemID = 1188270
kMDItemISOSpeed = 9.96875
kMDItemKind = "JPEG Image"
kMDItemLastUsedDate = 2005-10-30 15:21:39 -0400
kMDItemOrientation = 0
kMDItemPixelHeight = 1704
kMDItemPixelWidth = 2272
kMDItemProfileName = "Camera RGB Profile"
kMDItemRedEyeOnOff = 0
kMDItemResolutionHeightDPI = 180
kMDItemResolutionWidthDPI = 180
kMDItemUsedDates = (2005-10-30 15:21:39 -0400)
kMDItemWhiteBalance = 0
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden