#EXPORTING AN ALBUM IN IPHOTO 9.6.1 FULL#
See the gist for the full details.Īfter running the script, all my photos in Photos now have a keyword that starts with “ PhotosExport>” for each album that they belong to. Once we have the name, we can iterate over every photos in the album and add our keyword. We iterate over all albums and for each album we call getAlbumKeyword() to get the hierarchical keyword containing this album’s name and all its parents. As noted in this comment, you can use it to export images from Photos with the relevant export keywords by running this command in the Terminal: For more recent versions of macOS, look at Rhet Turnbull’s osxphotos.
#EXPORTING AN ALBUM IN IPHOTO 9.6.1 UPDATE#
Update Note that this script doesn’t work for Catalina or Big Sur. Obviously, I didn’t do this by hand as it would take ages and be prone to error, so I wrote a script to do it for me!
(I added “ PhotosExport>” so that these keywords are easy to identify.) For example, the Published album in the screenshot above lives in the Conferences & Meetups -> 2008 -> 2008-11 PHPNW08 folder hierarchy, so each photo within it, such as the one of Johanna and Mike, needs a keyword of “ PhotosExport>Conferences & Meetups>2008>2008-11 PHPNW08>Published”. My organisational structure in Photos looks something like this:įor each picture in an album, I chose to create a keyword that included the folders that that album was in using the “ >” symbol as a separator. The way that my photos are organised into folders and albums within Photos is stored in a database and as Lightroom Classic doesn’t have an “Import from Apple Photos” function, we’ll need to find a way to store which albums a photo is stored in within the photo itself and then recreate it in Lightroom Classic later. We need to do both for a successful migration.