Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jasnw

macrumors 65816
Original poster
Nov 15, 2013
1,035
1,135
Seattle Area (NOT! Microsoft)
Is there a way to dump the places information in an iPhoto library into a text file? I'd like to be able to build a file with latitude,longitude,name for each place in the library. I've been able to build a python script to access just about all other meta information about images in an iPhoto library, but not the places info. I know the latitude and longitude are (can be) put into the metadata stored in exported images, but I'm not using iPhoto when I extract images from the library (long story) and I don't think iPhoto puts the place name into the image file's metadata on export. I also know that there are reverse geocoding services that can convert a lat,lon to a place name, but that won't help me with place names that I've established in iPhoto.
 

robgendreau

macrumors 68040
Jul 13, 2008
3,471
339
I suspect that place info is stored in the database itself. Have you tried diving into that? I think maybe inside RKPlace etc. Take a look. I don't think there's any other place to access it. Unless maybe there's an Applescript or something out there somebody made to write Places to standard IPTC tags like the location ones.
 

jasnw

macrumors 65816
Original poster
Nov 15, 2013
1,035
1,135
Seattle Area (NOT! Microsoft)
I believe the information is stored in a collection of *.applace files located in the Database/Places subdirectory within the iPhoto library package. I'm fiddling around with the strings and grep commands to see if I can harvest anything useful from these proprietary-format binary files. I tried googling applace without much luck.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.