Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo
Mac

Taggify Evernote — AppleScript to add tag hierarchy to notes

evernote tags applescript script

  • Please log in to reply
No replies to this topic

#1 swehba

swehba

  • Pip
  • Title: Member
  • Group: Members
  • 18 posts

Posted 19 August 2012 - 08:33 PM

What does the script do?

This script examines the tags for the selected notes in Evernote. For each tag it then traverses the Evernote tag tree all the way up to the root ultimately replacing the tag with all the tags along its path. Say, for example, a note is tagged with "apple". Also say that the tags are organized as follows:

plant

food

fruit

apple

fuji

honeycrisp

red delicious

pear

bartlett

d'anjou

vegetable

greens

chard

lettuce


Running Taggify Evernote on that note will result in the tag "apple" being replaced by the tags "plant", "food", "fruit", and "apple" sorted alphabetically.

By the way, as the program runs it counts off the notes so you have some idea of how
far along it has worked. You can adjust this by modifying the properties below.

Why would I want to do this?

Two reasons:
  • If you structure your tags hierarchically, and then apply all the tags along a path, you can search for tag:fruit for example and get any note with the tags apple, fuji, honeycrisp, red delicious, pear, bartlett, or d'anjoy.
  • It saves you from having to manually enter all the tags along a path.
Disclaimer: I offer this script as-is and make no guarantees that it will do what you want. Although I have tested it extensively and use it on a daily basis, you may discover a bug I didn’t catch. Start out using it on a single note. Feel free to use the code as a basis for your own scripting work.

Attached Files







Also tagged with one or more of these keywords: mac, evernote, tags, applescript, script

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote