(*
Script récupéré dans :
https://macscripter.net/viewtopic.php?pid=181224
*)
use scripting additions
use framework "Foundation"
use framework "AppKit" -- for image stuff
set POSIXPath to POSIX path of (choose file of type {"jpg"})
my readEXIFFromJpeg:POSIXPath
on readEXIFFromJpeg:POSIXPath
set theImageRep to current application's NSBitmapImageRep's imageRepWithContentsOfFile:POSIXPath
set theEXIFData to theImageRep's valueForProperty:(current application's NSImageEXIFData)
return theEXIFData as record
end readEXIFFromJpeg:
--> {DateTimeOriginal:"2015:04:30 17:15:53", MeteringMode:5, ComponentsConfiguration:{1, 2, 3, 0}, BrightnessValue:2.569557666779, FocalLenIn35mmFilm:29, LensMake:"Apple", FNumber:2.200000047684, FocalLength:4.150000095367, ShutterSpeedValue:4.907640457153, SubjectArea:{1631, 1223, 1795, 1077}, ApertureValue:2.275007247925, SceneType:1, SceneCaptureType:0, ColorSpace:1, LensSpecification:{4.150000095367, 4.150000095367, 2.200000047684, 2.200000047684}, PixelYDimension:3264, WhiteBalance:0, FlashPixVersion:{1, 0}, DateTimeDigitized:"2015:04:30 17:15:53", ISOSpeedRatings:{80}, ExposureMode:0, ExifVersion:{2, 2, 1}, PixelXDimension:2448, LensModel:"iPhone 6 back camera 4.15mm f/2.2", ExposureProgram:2, ExposureTime:0.033333335072, SubsecTimeDigitized:"258", Flash:24, SubsecTimeOriginal:"258", SensingMethod:2, ExposureBiasValue:0.0}
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) dimanche 21 avril 2019 20:53:37
_______________________________________________
Applescript_fr mailing list
Applescript_fr@???
http://listes.patpro.net/mailman/listinfo/applescript_fr