Skip to content

Instantly share code, notes, and snippets.

@jezcope
Created May 30, 2011 11:59
Show Gist options
  • Save jezcope/998804 to your computer and use it in GitHub Desktop.
Save jezcope/998804 to your computer and use it in GitHub Desktop.
A short script to convert all my Evernote tags to titlecase.
require 'titleizer'
require 'appscript'
include Appscript
evernote = app('Evernote.app')
evernote.tags.get.each do |tag|
tag_name = tag.name.get
if tag_name[0] == tag_name[0].downcase
puts "#{tag_name} => #{tag_name.titleize}"
tag.name.set(tag_name.titleize)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment