# AppleScript help? auto import to iPhoto

**URL:** <https://forum.kirupa.com/t/applescript-help-auto-import-to-iphoto/242938>\
**Category:** Uncategorized\
**Created:** [October 31, 2007, 8:45pm UTC](https://forum.kirupa.com/t/applescript-help-auto-import-to-iphoto/242938 "2007-10-31T20:45:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![susancbk](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@susancbk](https://forum.kirupa.com/u/susancbk)\
**Post date:** [October 31, 2007, 8:45pm UTC](https://forum.kirupa.com/t/applescript-help-auto-import-to-iphoto/242938/1 "2007-10-31T20:45:21Z")

</div>

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](http://henrik.nyh.se/2006/12/automatically-import-and-tag-photo-booth-photos-into-iphoto)

and came up with this

```auto

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)

> **[eyefi](http://www.screencast.com/users/susanBuck/folders/Jing/media/f34a1d3a-aa65-4c63-92f6-8d98e22da285)**
>
> Shared from Screencast.com

Any Ideas?
