Ok, so we all know that Apple makes software, and that its software is sometimes full of fail:
Even if their software usually integrates nicely, it really irritates me that some details are completely left out. For instance, iPhoto will import and manage movies from a digital camera. Then, when you are going to show the photos to the family with, for instance, FrontRow, the movies won’t come up. They’ll be ignored in the ‘Photos’ tab, and nothing will show up on the ‘Movies’ tab either.
Oh well, bash comes to the rescue:
iphoto2imovie()
{
local DEST="${HOME}/Movies/iPhoto Movies/" d
rm -rf "${DEST}"
mkdir "${DEST}"
find "${HOME}/Pictures/iPhoto Library/Originals/" \
-iname '*.avi' -or -iname '*.mov' | while read f ; do
d="${f%/*}"
d="${DEST}/${d##*/}"
mkdir "${d}" 2>/dev/null
ln "${f}" "${d}"
done
}
I just hate to have to do this by hand.
— ferdy

