Re: IMAGE IPTC metadata
Re: IMAGE IPTC metadata
- Subject: Re: IMAGE IPTC metadata
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 21 Jan 2006 13:52:33 +0100
Le 20 janv. 2006, à 22:41, Bill Briggs a écrit :
At 10:11 PM +0100 1/20/06, Helmut Fuchs wrote:… 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
Hello
To get these datas I uses this short simple script:
-- [SCRIPT lecture metas 3}
property LF : ASCII character 10
property monFichier : "Macintosh
HD:Users:yvankoenig:Desktop:keywordtest files:IMG_1519.jpg"
(* edit the value of this property *)
set monFichier to "Macintosh HD:Users:yvankoenig:Documents:bureau
Yvan:Yvan aux abris:keywordtest files:IMG_1503.jpg"
try
set refFich to open for access monFichier as alias
copy (get read refFich for 6 * (16 * 256)) to donnees
end try
try
close access refFich
end try -- tr01
if "<x:xmpmeta" is in donnees then
set liste to my texte2liste(donnees, "<x:xmpmeta")
set donnees to "<x:xmpmeta" & liste's item 2
set liste to my texte2liste(donnees, "</x:xmpmeta>")
set donnees to liste's item 1 & "</x:xmpmeta>"
else
set donnees to ""
end if
set the clipboard to donnees
display dialog " the datas are in the clipboard !"
-- =====
on texte2liste(t, TID)
set AppleScript's text item delimiters to TID
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end texte2liste
-- =====
-- [/SCRIPT]
Yvan KOENIG
_______________________________________________
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