Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Interesting - does that mean the iPhoto 2 API is available ?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Interesting - does that mean the iPhoto 2 API is available ?
Authored by: minimal on Sep 10, '03 10:58:32AM

I seem to recall that in the BetterHTMLExport description it was mentioned that undocumented iPhoto API's were required to get the PlugIn to work. I just want to be able to dump the raw JPG, title and comment into separate files to let my own gallery creation script do its work, so does anyone have any info that might let me write such a PlugIn ?

My Mac programming isn't good enough to go and rip apart iPhoto and do it myself, but AppleScripting it isn't as nice as a simple exporter would be. Currently I use the built-in HTML exporter and wander around the tree that it generates, but that's more work than it needs to be.

Thanks in advance,
--
ian.



[ Reply to This | # ]
Exporting iPhoto data
Authored by: escowles on Sep 10, '03 11:22:12AM

Probably a better way is to process the iPhoto data and images directly. I wrote a small Java app that I use to do this for my own personal needs -- I just parse the AlbumData.xml file (using the Cocoa property list classes) and export the data I want. This lets you get most of the data. The notable exceptions are album comments and dates (these might be accessible by parsing the album plists, though), and the EXIF info that's in the image files.

You have to copy the images and make your own screen-resolution images separately.

-Esme



[ Reply to This | # ]