Created
August 25, 2017 09:48
-
-
Save martinpi/c84d5530dafb73b5a9815768f5f9a160 to your computer and use it in GitHub Desktop.
Import a folder of text files into Evernote (OSX/AppleScript)
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 "Finder" | |
set fl to files of folder POSIX file "/Users/pi/Desktop/VoodoopadExport" as alias list | |
end tell | |
repeat with f in fl | |
set theText to (do shell script "cat " & quoted form of (POSIX path of f)) | |
set theName to (do shell script "basename " & quoted form of (POSIX path of f)) | |
tell application "Evernote" | |
create note with text theText title theName notebook "private" tags "VoodooPad" | |
end tell | |
end repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment