Suppose I want to fill up a flash drive with the most recent photos in my iPhoto Library.
I want to end up with an external drive that has all my photos in a single directory (no nested folders)
Those photos that have been modified, I want the modified version of the photo to end up on the drive.
Those photos that have not been modified, I want the original version of the photo to end up on the drive
I want to start with the newest photo and work backward in time, so when the drive fills up, the latest photos will be included on the external drive.
I fully expect that the external drive cannot hold all the pictures in my library. Any warning to this effect must be non-modally, and not prevent the script from proceeding to fill the drive with the newest photos in my library, then halt gracefully when the disk is full.
I want to do this programmatically (shell or AppleScript), without launching iPhoto.
Does anyone know how to go about doing this? I've written some shell scripts over the years, but none of them quite work the way I'd hoped.
I suspect the right answer will involve some copying and some "if" statements.