Skip to content

Instantly share code, notes, and snippets.

@stevenhuey
Created March 4, 2017 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenhuey/43bf4866c7c39d687f4a4a71c4eb4317 to your computer and use it in GitHub Desktop.
Save stevenhuey/43bf4866c7c39d687f4a4a71c4eb4317 to your computer and use it in GitHub Desktop.
Find any unused Evernote tags and delete them
tell application "Evernote"
try
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