Skip to content

Instantly share code, notes, and snippets.

@martinpi
Created August 25, 2017 09:48
Show Gist options
  • Save martinpi/c84d5530dafb73b5a9815768f5f9a160 to your computer and use it in GitHub Desktop.
Save martinpi/c84d5530dafb73b5a9815768f5f9a160 to your computer and use it in GitHub Desktop.
Import a folder of text files into Evernote (OSX/AppleScript)
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