initial commit

This commit is contained in:
Danny Berger
2014-04-08 14:29:15 -06:00
commit 6e9abff2e1
5 changed files with 281 additions and 0 deletions

31
export-iphoto.applescript Normal file
View File

@@ -0,0 +1,31 @@
on run argv
tell application "iPhoto"
set vAlbum to first item of (get every album whose name is (item 1 of argv))
set vPhotos to get every photo in vAlbum
set output to ""
repeat with vPhoto in vPhotos
set output to output & <EFBFBD>
"altitude: " & altitude of vPhoto & "
" & <EFBFBD>
"latitude: " & latitude of vPhoto & "
" & <EFBFBD>
"longitude: " & longitude of vPhoto & "
" & <EFBFBD>
"name: " & name of vPhoto & "
" & <EFBFBD>
"date: " & date of vPhoto & "
" & <EFBFBD>
"path: " & original path of vPhoto & "
" & <EFBFBD>
"title: " & title of vPhoto & "
------
" & comment of vPhoto & "
------------
"
end repeat
return output
end tell
end run