docs » EvernoteOpenAndTag

Add some missing hotkeys for opening a note in Evernote, and for common tag sets

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/EvernoteOpenAndTag.spoon.zip

API Overview

API Documentation

Variables

logger
Signature EvernoteOpenAndTag.logger
Type Variable
Description

Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.

Methods

bindHotkeys
Signature EvernoteOpenAndTag:bindHotkeys(mapping)
Type Method
Description

Binds hotkeys for EvernoteOpenAndTag

Parameters:

  • mapping - A table containing hotkey objifier/key details for the following items:
    • open_note - open the current note in a new window
    • open_and_tag-<tag1>,<tag2>... - open the current note and apply all the comma-separated tags given. The tags must already exist in Evernote for the tagging to succeed.
    • tag-<tag1>,<tag2>... - open the current note and apply all the comma-separated tags given. The tags must already exist in Evernote for the tagging to succeed.
evernoteIsFrontmost
Signature EvernoteOpenAndTag:evernoteIsFrontmost()
Type Method
Description

Returns true if Evernote is the frontmost application

Parameters:

  • None

Returns:

  • true if Evernote is the frontmost application, false otherwise
inlineTagCurrentNote
Signature EvernoteOpenAndTag:inlineTagCurrentNote(tags)
Type Method
Description

Apply the given tags to the selected Evernote notes

Parameters:

  • tags - a table containing a list of tags to apply. The tags must already exist in Evernote.

Returns:

  • None

Notes:

  • If multiple notes are selected, the tags are applied to all of them
openAndTagCurrentNote
Signature EvernoteOpenAndTag:openAndTagCurrentNote(tags)
Type Method
Description

Open the current Evernote note in a new window and apply the given tags to it

Parameters:

  • tags - a table containing a list of tags to apply. The tags must already exist in Evernote.

Returns:

  • None

Notes:

  • Even if multiple notes are selected, only the first one is tagged, as it will become the "current one" after it's opened in a new window
openCurrentNoteInWindow
Signature EvernoteOpenAndTag:openCurrentNoteInWindow()
Type Method
Description

Open the currently-selected Evernote notes in new windows. Uses Applescript from https://discussion.evernote.com/topic/85685-feature-request-open-note-in-separate-window-keyboard-shortcut/#comment-366797

Parameters:

  • None

Returns:

  • None
tagCurrentNote
Signature EvernoteOpenAndTag:tagCurrentNote(tags)
Type Method
Description

Assigns tags to the currently-selected Evernote notes

Parameters:

  • tags - a table containing a list of tags to apply. The tags must already exist in Evernote.

Returns:

  • None