iPhoto2
Just released a library for parsing iphoto databases:
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.
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.
Comments:
<< Home
Nice! The example doesn't quite work, though. Did you mean something like
album.images.each do |image|
puts image.path
end
album.images.each do |image|
puts image.path
end
Thanks for the heads up... a silly bug in the each method. I just put up iphoto2-1.0.1 to fix this bug.
Thanks again,
Patrick
Thanks again,
Patrick
We noticed your blog is focused in Ruby and that
is why we would like to invite you to register yourself and your
blog at RubyCorner, a directory of Ruby related blogs:
http://www.rubycorner.com/
We like to think about RubyCorner as a "meeting place" for the
community, also as a "focal point" where the people new to this
technology can quickly tune into the pulse of the community.
Registering your blog will help build a valuable resource for
this growing community.
Thanks.
Post a Comment
is why we would like to invite you to register yourself and your
blog at RubyCorner, a directory of Ruby related blogs:
http://www.rubycorner.com/
We like to think about RubyCorner as a "meeting place" for the
community, also as a "focal point" where the people new to this
technology can quickly tune into the pulse of the community.
Registering your blog will help build a valuable resource for
this growing community.
Thanks.
<< Home
