drag an image into a folder, auto import into iPhoto?

What im attempting to do is put an AppleScript on a folder so that whenever I drop an image into that folder it loads up iPhoto and imports it.

I used this similar example as my starting ground : http://henrik.nyh.se/2006/12/automatically-import-and-tag-photo-booth-photos-into-iphoto

and came up with this

on adding folder items to this_folder after receiving added_items tell application "iPhoto" import from added_items delay 5 -- wait for import to finish tell (the first album whose name is "Last roll") to select photos assign keyword string "Eye-fi" select (the first album whose name is "Eye-fi") end tell end adding folder items to
Its working fine on my powerbook g4 , with iphoto 5.0.4

However, when tried on a mac book, with the latest version of iphoto it starts to import then fails with an Unreadable Files error…however there’s no files listed.

Here’s a link to a screenshot of the error message (the screenshot also shows my script)
http://www.screencast.com/users/susanBuck/folders/Jing/media/f34a1d3a-aa65-4c63-92f6-8d98e22da285

Any Ideas?

Hi Susan,

in the current version of iPhoto there is no album “Last Roll”. It’s now called “Last Import”.
Change this line:


.
tell (the first album whose name is "Last Import") to select photos
.

The second error can occur, if there is no album “Eye-fi” :wink:

Awesome Stefan - this worked : )