Created
August 27, 2013 18:12
-
-
Save swbuehler/6357013 to your computer and use it in GitHub Desktop.
Remove file extension from evernote note titles (example)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Evernote" | |
set theNotebooks to every notebook | |
repeat with eachNotebook in theNotebooks | |
set theNotes to every note in eachNotebook | |
repeat with eachNote in theNotes | |
set theoldTitle to the title of eachNote | |
if the length of theoldTitle > 4 then | |
set theEnding to characters -4 thru -1 of theoldTitle as string | |
if theEnding is ".pdf" then | |
set theNewTitle to characters 1 thru -5 of theoldTitle as string | |
set the title of eachNote to theNewTitle | |
end if | |
end if | |
end repeat | |
end repeat | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment