Q: Applescript to get physical path of an image in Yosemite photos app
In iPhoto we had that nice XML file with the metadata for each image in iPhoto.
In the Yosemite Photos app, there is no such file. So, I wrote an Applescript that loops through each and every folder, subfolder, album, etc. and write the details to an XML file.
When the code loops, I have:
repeat with img in every media item of myContainer
and I get these details:
- filename: 2011-07-10 020.JPG
- keywords: 2011-07-10
- name: missing value
- description:
- favorite: false
- date: Monday, July 4, 2011 at 12:34:30 PM
- id: 9XCpq6SzSD666TwlCHW8HA
- height: 3240
- width: 4320
- altitude: missing value
- location: missing valuemissing value
But nothing in those attributes tells me where the actual image file is located on the hard drive. Does anyone know a way in AppleScript to get physical path of an image in Yosemite photos app?
Thanks!
Mac mini (Late 2012)
Posted on Dec 16, 2015 6:28 PM