Photos and Applescript export
Hi,
for Iphoto I had a nice Script to copy new Photos to a Network location:
set theDestinationFolder to POSIX file "/location/Fototemp/NewPhotos/" as alias |
tell application "iPhoto"
set theImagePaths to image path of photos of album "NewPhotos" |
end tell
repeat with thisPath in theImagePaths
set thisFile to POSIX file thisPath as alias |
tell application "Finder" to duplicate thisFile to theDestinationFolder with replacing |
end repeat
with the new "Photos" I can´t get it to work; so I tried the export function of Photos:
tell application "Photos"
set theContainersList to every container whose name is "NEW PHOTOS"
set theItemsList to every media item of the first item of theContainersList
export theItemsList to "Users/Name/Fototemp/NewPhotos/"
end tell
but it allways gives me a number -10000 error.
Am I missing something?
Thanks in advance!
Unlight
iMac (21.5-inch Late 2009), OS X Yosemite (10.10.3), null