iPhoto 4 or later: Rebuilding the iPhoto Library: "iPhoto has an undocumented feature that allows you to rebuild the currently selected iPhoto library. Sometimes rebuilding the library can make it readable if it seems to be unreadable, has multiple missing photos, or if there are other issues related to reading the iPhoto library structure."