Q: Applescript to export single iPhoto album
I'm looking for a script that will allow me to export a single iPhoto album. I'd like to be able to automate it (eg. once daily). The name of the album never changes, but the content will.
I've found a few starting points, but nothing I've been able to wrap my head around. Most seem to require an actual input as opposed to a defined album.
Any help?
yeti
MacBook Pro (13-inch Mid 2012), OS X Mavericks (10.9)
Posted on Jan 8, 2014 8:20 PM
Depending of what you mean by “exporting an album”, the following script might do what you are asking for.
set theDestinationFolder to POSIX file "/Users/user name/some folder" as alias
tell application "iPhoto"
set theImagePaths to image path of photos of album "My Super Awesome Album"
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
Message was edited by: Pierre L. (no need to select the album)
Posted on Jan 9, 2014 8:07 AM