Adam Burt writes in with some news that will be of interest to Mac users who like to script their workflows:
I guess you might have seen this, with this week’s update of iPhoto to 8.0.3? Apple have added latitude, longitude, altitude and reverse geocode capabilities within the photo properties of the scripting dictionary of iPhoto.
I’ve cooked up a couple of scripts you can try out using iPhoto and Google Earth. All you have to do is select a photo that has a location associated with it, be it a GPS related date or one you have chosen from within iPhoto, then run the script.
This script shows you where the photo was taken…
This script will link to the selected photo within your iPhoto library and display it along with its location as well within Google Earth…
To reverse geocode an image without Lat & Long data:
tell application “iPhoto”
set myImage to the selection
tell myImage
set altitude of item 1 of myImage to 23 — In meters.
set longitude of item 1 of myImage to 0.003976
set latitude of item 1 of myImage to 51.397592
reverse geocode of item 1 of myImage
end tell
end tell
To reverse geocode an image with Lat & Long data:
tell application “iPhoto”
set myImage to the selection
tell myImage to reverse geocode of item 1 of myImage
end tell
Cheers,
Adam