Here’s a basic utility script which allows you to set the location the currently selected note in Evernote via the Google Earth app. Once you’ve selected your location in Google Earth, just highlight the item in Evernote that you’d like to add location data to and run the script. The script takes the latitude/longitude of […]

(*
http://veritrope.com
Set Location of Evernote Items with Google Earth
Version 1.0
September 23, 2010
Project Status, Latest Updates, and Comments Collected at:
http://veritrope.com/code/set-location-of-evernote-items-with-google-earth/
           
*)

property lat : ""
property long : ""
my getGoogleEarthCoordinates()

tell application "Evernote"
    set theSelection to selection
    repeat with i from 1 to (length of theSelection)
        set theItem to item i of theSelection
        set latitude of theItem to lat
        set longitude of theItem to long
    end repeat
end tell

on getGoogleEarthCoordinates()
    tell application "Google Earth"
        set viewInf to GetViewInfo
        set coords to {latitude of viewInf, longitude of viewInf}
    end tell
    set long to (text item 2 of coords)
    set lat to (text item 1 of coords)
end getGoogleEarthCoordinates