This requires a bit of Hazel and a bit of Evernote Applescript knowledge. I thought I would try here before the Evernote forum.
I would like to use Hazel to read a due date for a PDF bill, send the bill to Evernote and add a reminder to the note for the due date.
I am not skilled with AppleScript but I know how to copy and paste! My current Evernote AppleScript is limited only to setting notebook and taging, I don't know how to pass variables to the script. Has anyone done this?
I am fine pulling out the [Payment Date] from the bill using Contents contain match. In fact, I have been able to do everything except setting the reminder. As a workaround currently I use Hazel to send the file to evernote, tag it, then it displays a message "Set reminder on note [Payment Date -1d]" then I go into evernote and manually set that date. Its the last part I want to automate. An AppleScript ninja should be able to do this!
These are the Evernote note properties pertaining to reminders which can be used in AppleScript
reminder time (date or missing value) : The reminder time for the note.
reminder done time (date or missing value) : The time the reminder for the note was marked completed.
reminder order (date or missing value) : The reminder order time for the note. When not empty, this is what indicates the note has a reminder. To add a reminder to a note, typically set its reminder order to the current date.
I got that from here.
Here is my current AppleScript
- Code: Select all
tell application "Evernote"
activate (create note from file theFile notebook {"Statements"} tags {"Tag1", "Tag2"})
synchronize
end tell