Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Find any unused Evernote tags and delete them
tell application "Evernote"
set theTags to every tag
repeat with theTag in theTags
set theNotes to {}
set theName to "\"" & name of theTag & "\""
set theNotes to (find notes "tag:" & theName)
if theNotes is {} then
delete tag (name of theTag)
end if
end repeat
end try
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment