I recently upgraded from an aging MacBook Pro to a much more nubile MacBook Air. I am frankly delighted with the Air in every way. The problem I encountered though is the sparse image backup of the MacBook Pro I made with Carbon Copy Cloner before I wiped the drive and sold it is seemingly corrupted and will not mount.
I did though have a backup of my Photo Booth Photos and wanted to get them to be recognized by the application. It is admittedly simply a matter of entering them into the Recents.plist file, but having several hundred photos across three operating systems and three naming schemes (was that *really* necessary, Apple?) getting these into the proper order by hand would have been a nuisance to say the least.
Alas! A use for my PHP skills! I went ahead and wrote a simple PHP based shell script you can use to create a new .plist file with your images properly ordered.
This will back up your current Recents.plist as Recents.plist.bk.[time] so if you decide to roll it back, it will be there for you
Simply executing
git clone git://gist.github.com/1108691.git PhotoBoothRepairshould both download it and set it executable.
~/Pictures/Photo Booth Library/Pictures/
chmod +x Photobooth_rebuild.sh.php
./Photobooth_rebuild.sh.php
I welcome any and all feedback. Feel free to fork this code on Github - I'm open to any updates.
Well let me know in the comments if you find this useful. I wrote it for my personal use and it saved me a ton of time.