From the "Ole is not too stupid for this" department

by Volker Weber

Ole Saalmann took me to task on the Automator rant. He wrote an elaborate workflow which was designed exactly as I had imagined. However it turned out that it did not really work. Photos where imported into the ~/Pictures folder and not into the appropriate directories within the iPhoto Library tree. I fooled around with moving the files to my temporary directory, then fixing them with exifcleaner, importing them to iPhoto and then removing the files from the temporary folder. But this also did not work. The library only had zero kb files and thumbnails in iPhoto. Ole gave it another go, but it only worked when he removed exifcleaner, which was the only reason to build this workflow in the first place.

It was also possible to import pictures that where already on the computer and did not have to be imported from the camera. But that was again not the original idea. Today Ole took the detour with AppleScript. The only original Automator action is the download from the camera via Image Capture (Digitale Bilder). I now have saved the workflow as an application and told Image Capture to call it when a camera is connected. Works like a charm.

However, this completely defies the original idea that it would be easy to slap together this workflow with Automator. But we don't want to to give up. Maybe you can come up with a working solution that does not rely on AppleScript. This workflow assumes you have a perl script called exifcleaner.pl in a subdirectory called bin inside your home folder (~/bin/exifcleaner.pl).

Update: Pascal Behrend recreated exactly the same workflow that did not work well for us. I make it also available for testing purposes. The not so funny thing is: This workflow works most of the times. Not all of the times though. Since we don't delete pictures from the camera, it can happen that it hits the duplicates dialog. Depending on whether you had deleted the last imported pictures from iPhoto or not, this happened sometimes while testing. Another side effect is that the workflow does not clean out the temporary folder before starting. If it still exists because an old workflow stalled, you get more side effects. Again I started to see imported pictures in ~/Pictures and zero kb pictures in iPhoto Library.

Comments

There's a shell script here which dows the grunt work. What I did not want to look up is the stoopid
"tell iPhoto not to care about things it should not and simply import folder ${IMPORTED}" invocation for ElementarySchoolScript^WAppleScript. Man osascript.

Batches, workflows that work: shell scripts.
Automator? Yuck. It's a farce. Sorry to say that, since Apple came out with very good ideas in the last years but Automator simply sucks.

Post a comment











Shall I remember this for you?




Use your full name and a working email address. Unless you want your comment to be removed. No kidding.



Ceci n'est pas un blog

vowe.net is a personal website published by Volker Weber a.k.a. vowe. I am an author, consultant and systems architect based in Darmstadt, Germany.

rss Click here to subscribe

Hello

About me
Contact
Publications
Certificates
Frequently asked questions

Twitter Updates

More >

Poll

Which BlackBerry could be your next one?

Getting poll results. Please wait...

Local time is 19:16

visitors.gif
137 visitors online

News

Other sources of news, imported into my own format to make them more accessible:

Heise Online
Schlagzeilen
Weather

Archives

As most of my articles roll off the front page rather quickly, I am making an archive of previous posts available here. You can also use the handy search box at the top of the page if you are looking for something particular.

Last 30 days
More archives

Got the T-shirt?

Got the T-shirt?
Are you buying from the US?

Systems Architecture

This site runs on an Apache web server on top of the Linux operating system. The content is managed with MovableType which is implemented in Perl. Last but not least the HTML code your browser sees is put together with PHP.

© 1992-2008 Volker Weber.
All Rights Reserved.

Impressum