Jump to content
  • 0

(Archived) AppleScript: get current note?



I am trying to use AppleScript to fill in the Author, Latitude, Longitude, and Altitude information for notes I make on my desktop Mac. I know exactly where it is, and I'm the only one who will create Evernote notes on it, so the information is always going to be the same. I could easily AppleScript the info into a selected note but I can't figure out how to "get" the selected or current note.

Is there a way?

Of course this information would be better as a preference (I would set default values for author, latitude, longitude, and altitude and change them if I had to, on a note-by-note basis), but lacking that an AppleScript is a pretty good Plan B. But I'm stuck at Step 1 of Plan B.

Link to comment

13 replies to this idea

Recommended Posts

Sadly, Evernote's AppleScript API has some significant gaps, including the "standard suite" and "required suite" of operations.

Until they fix this (soon, please!), you might be able to cobble something together using the "find notes" verb. I found this seems to work:

tell application "Evernote"

set note_list to find notes "Some search text"

set latitude of item 1 of note_list to 100.0

end tell

If you use a search string that you are sure is unique, then find notes will return just the one note you want.

Link to comment

The problem with this is I'd have to have something to search for, which I'm not likely to do on a brand-new note. I can't write a script (with its own unique search string) for each note. Easier to just fill in the note's info by hand.

Evernote guys: can we have a preference to set a default author, latitude, longitude, and altitude? Would be very handy. I would bet you that for most notes, those fields are blank-- because it's too much trouble to fill them in. Let's do it automatically.

Link to comment

My guess is that we will see some attention being paid to automatically adding lat/long info from the Desktop sooner rather than later:


Until that (happy) day, how did you envision the AppleScript working?

-- "Menu-driven" way to select notebook and note to edit?

-- Lat/Long/Alt. info that persists within a session?

Am I missing anything?

Link to comment

We plan to do something with Core Location on the Mac at some point, which would potentially allow geo-tagging as you move around with your laptop. I don't have a date for when we'll start working on this ... I think we'll want to confirm that the results would work well, etc.

Link to comment

I keep asking for a preference to set a default location and author for notes that I create, but I don't think I've had anyone from Evernote say "that's a good idea, we'll file it under a feature request." For the record, it IS a good idea, but maybe I'm asking in the wrong forum. Where should I be sending this request?

Geotagging is nice but it's overkill for a desktop Mac. Every single note is going to be created in the same location (my living room). Every single note that is created in my living room will be created by me (I have the only key to the house). One might think that if all of the notes are going to have the same location and author info that it would not be useful, but in my case I share an Evernote account with someone in another location, and it would be super to be able to have that author and location information. That way, if I have a question about a note, I'll know whether to ask her or ask myself.

So... where should I be directing my plea for a preference that sets a default location and author?

Link to comment


This topic is now archived and is closed to further replies.

  • Create New...