Reverse geocode in iPhoto '09 using AppleScript
Monday, June 08, 2009 (09:35 UTC)
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"To reverse geocode an image with Lat & Long data:
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 telltell application "iPhoto"Cheers,
set myImage to the selection
tell myImage to reverse geocode of item 1 of myImage
end tell
Adam
Ogle Earth documents how Google Earth and other neogeographical tools are affecting science and geopolitics. By Stefan Geens. Email me.
Last tracked here:
Last tracked here:
Ogle Earth: Recent posts
Ogle Earth's links
From the link list:
Archives
Powered by
Movable Type 3.2
Movable Type 3.2
