Saturday, December 13, 2008

Automatically Copy Your Pictures from a Digital Camera

The Problem
Ok... so who gets sick of all of the stupid pop-ups from the media detectors? I personally hate all media detectors because even the best are slow, don't organize your photos by date and month, and are always in your face!

The Solution
I believe the best structure for organizing pictures is: root\YYYY\MM month. This structure is by far easiest to navigate (using Picasa). Each folder does not get too big (I take a lot of pictures) and it is easy at least to remember, within a couple of months, when you took a picture. Also, it is nice because the years AND months actually sort correctly.


The Script
Anyways, I wrote a python script that reads your removable drives and finds DCIM folders and copies them to a specified root folder in the structure specified above.
This script works great for me, but you could add a bit more checking and error logging... It's just over a hundred lines and I wrote it in the last hour and a half (I got sick of copying all the pictures over manually...) You might want to add the -h option once for usage. So here it is:
copy_pics.pySo, if you're like me and have an all-in-one internal card reader, your drive letter basically never changes. I just create a batch file and put a link to it on my quick launch. This is my batch file:

copy_pics.bat


I'll probably create a registry key that will run every time I mount a removable drive and check for a DCIM folder... but that can wait till tomorrow... I told my wife I'd come to bed over an hour ago. Oops.

2 comments:

Brandon THE Mann said...

Nerd...

Brandon THE Mann said...

But cool...

Post a Comment