This post originated from an RSS feed registered with Ruby Buzz
by Patrick May.
Original Post: iPhoto2
Feed Title: not another ruby framework
Feed URL: http://feeds.feedburner.com/Narf
Feed Description: Developing the Ruby platform, no shortcuts.
Just released a library for parsing iphoto databases:
gem install plist gem install iphoto2
iphoto = IPhoto2.new # path to AlbumData.xml is optional iphoto.albums.each do |album| album.each do |image| puts image.path end end
There's more, but I'm tired now.
Update: oylenshpeegul pointed out a bug in the comments, I've put out another gem (iphoto2-1.0.1) to the problem with the Album#each. And he is correct, there is an Album#images accessor.