I would like to files added to the folder were automatically sent to Evernote. At the same time I would like to synchronize the creation dates. File creation date should be assigned to the note.
Until now, I used the script:
- Code: Select all
on run {input}
tell application "Finder"
repeat with theFile in input
try
set theFileName to (text items 1 thru ((length of (name of theFile as string)) - 4) of (name of theFile as string)) as string
set theFileDate to (the creation date of theFile)
set modFileDate to (the modification date of theFile)
set theNotebook to "Ideas"
tell application "Evernote"
create note title theFileName from file theFile created theFileDate notebook theNotebook
end tell
end try
end repeat
end tell
end run
Unfortunately, this method does not work with Hazel.
Does anyone have an idea how to get it to work?
K.