I have a folder of stuff I wanted to import into Evernote. Papers, web clippings, old letters, etc. In particular, I really wanted to create the notes with the same creation, modification, and filename as the original, and I wanted the Source URL to point to the original file location, in case I later realize that I need information from the file path.
So, I created the following AppleScript. It takes the files selected in Finder and makes a note for each selected file, copying the creation, mod, url, and filename of the original files.
I hope somebody else also finds this useful.
property importNotebook : "inbox"tell application "Finder" to set selectedFiles to (selection)repeat with f in selectedFiles tell application "Finder" set creationDate to creation date of f set modificationDate to modification date of f set sourceUrl to URL of f end tell tell application "Evernote" set filepath to POSIX path of (f as text) set newNote to create note title (name of f) from file (filepath as POSIX file) notebook importNotebook set creation date of newNote to creationDate set modification date of newNote to modificationDate set source URL of newNote to sourceUrl end tellend repeat
Idea
John Christopher Jones 29
I have a folder of stuff I wanted to import into Evernote. Papers, web clippings, old letters, etc. In particular, I really wanted to create the notes with the same creation, modification, and filename as the original, and I wanted the Source URL to point to the original file location, in case I later realize that I need information from the file path.
So, I created the following AppleScript. It takes the files selected in Finder and makes a note for each selected file, copying the creation, mod, url, and filename of the original files.
I hope somebody else also finds this useful.
3 replies to this idea
Recommended Posts
Archived
This topic is now archived and is closed to further replies.