Skip to content

Monthly Archives: December 2015

How to Import Photos from a Camera and Move Them to a Folder Depending on the Day, Month and Year Taken

This is for Mac OS X, without any guarantee and at your own risk (Think first!).

In the olden days, I used to have a tool called Camera Window to import photos from my Canon camera into the archive on my computer. On a windows machine, this worked by connecting the camera via USB cable with the computer, and it worked like a charm. On the Mac, I had to pull the SD card out of the camera and put it into the computer. Same thing: The photos were copies from the card to the computer, but not only to some random place. They were sorted and copied into folders according to the date they were taken. My folder scheme looked like this:


Now Camera Window doesn’t seem to want to import photos and videos from my Android devices. What a shame. I had to figure out another way. This is how it works for me. The solution uses Image Capture, AutoImport, an Folder Action Script and the freeware tool DIM. (Surely, one could have coded a nice script, but I couldn’t be bothered. There’s also some nice commercial software around, but it seemed too expensive (Hazel).)

1 Recognize that a card has been inserted or an Android device attached

Once you insert an SD card or connect an Android device, OS X recognizes the new device and acts the way you told it to act in the settings of an app called “Image Capture” (“Digitale Bilder”). If you cannot find the app in Spotlight, you can find it in the applications folder of your system.

Bildschirmfoto 2015-12-29 um 14.28.48

Select the device from the list on the left-hand side of the window and select the AutoImporter app (if you cannot see the selection option, press the little arrow icon).

2 Copy the files automatically into one location on the computer and delete files from card/device

Now you need to tell AutoImporter what precisely to do once it has been started by Image Capture. First you will have to locate the app. You can find it here: Mac > System > Library > Image Capture > Support > Application. Start it, go to the preferences, select your import folder (mine is called MotoGImport), and select to have the app delete the files from the camera once they have been copied (again: at your own risk and only if you want this).

Bildschirmfoto 2015-12-29 um 14.39.07

Now, once you insert your card/attach your device, “Image Capture” will recognise this, invoke AutoImporter, which will copy the files to your import folder on your computer and delete the files on your camera/SD card. If you are happy with the choices to create and sort into folders in AutoImport, you can have AutoImport do everything and you are done here. I wasn’t happy with the choices. This is why there is step 3.

3 Sort and copy the files into the proper location in the archive

Mac OS X can automatically observe folders and act upon “folder action”, e.g. if there are new files in a folder. Topher Kessler explains how this works over at MacIssues. Please read.

You can then create an apple script. I have used the “add – new item alert” and changed it in the script editor (you’ll probably have to save your script elsewhere and then move it to where the other scripts are: Library > Scripts > Folder Action Scripts). My script looks like this:

on adding folder items to this_folder after receiving added_items
	delay 30
		tell application "Terminal"
			do script "/Applications/dim -p; exit;"
		end tell
	end try
end adding folder items to

As you can see, the script basically invokes an app called DIM.

DIM is an app by Alan Light. You can get it here. There is a manual that will explain everything in detail. Please donate some money to Alan if you like the tool.

Now once I connect my Android phone or plug in an SD card, Image Capture will see this and start AutoImport, which will import the photos to the import folder. Folder Actions will see the new files in the folder and start DIM. DIM will move the files to their target destination. Done.

This is a solution without any clicking and it works with all devices. If your camera appears as a folder, you only need DIM and nothing else.

I imagine there are easier ways to get the job done, if you know any, please comment.

Weekly Links Digest December 27, 2015

Merry Christmas – Eine fröhliche Weihnacht!

Merry Christmas 2015

Frohe und fröhliche Weihnacht(en) – Wie jetzt?

Zwischen 1906 und 1929 liegt im Google-Korpus (siehe Link) die fröhliche Weihnacht weit vorn. Interessat auch, dass es bis in die 1930 zwar frohe und fröhliche Weihnachten gegeben hat, die Weihnacht aber so gut wie immer fröhlich und niemals froh war. Auch in den Folgejahren ist die fröhliche Variante der Spitzenreiter. Seit Mitte der 1980er ist man allerdings nicht mehr fröhlich, sondern eher froh–vielleicht das Jahr überlebt oder doch noch alle Geschenke bekommen zu haben? Mit historischem Blick könnte man die verschobenen relativen Frequenzen sicher besser einordnen (Wirtschaftskrise, Terror, Krieg, Generationen und Bewegungen).

[on Google Ngrams]

Egal welche Variante nun eine höhere Frequenz aufweist, Weihnachten zu thematisieren scheint immer wichtiger zu werden, wie dieses Ngram zeigt.

Weekly Links Digest December 20, 2015

Weekly Links Digest December 13, 2015