iphoto 6 import and change properties

I am new to using applescript. I need to know how to reference a file once imported to change properties such as date, title.
ie


tell application "iPhoto"
import from "'/Users/myname/Desktop/Downloads/Pictures/myimg.jpg'"
set title of IMPORTED_IMAGE to "my imported image"
end tell

Any help is much appreciated
Thanks very much
Ben

Hi Ben,

AppleScript works with old fashioned colon separated paths:


tell application "iPhoto"
import from (((path to desktop) as string) & "Downloads:Pictures:myimg.jpg") as alias
get properties of photo 1 of last rolls album
end tell

this imports the file and shows the properties you can change