A few years ago Evernote was AppleScriptable and I was able to create some handy automations that worked reliably. Now that Evernote is no longer AppleScriptable I am trying to Use Keyboard Maestro to achieve the same thing. The most important macro for me is one where I start with a PDF on the screen, in the Preview app. From there, I want to add this PDF to Evernote as a new note, obtain input from the user Via a dialogue box, rename the note based on the user input, get the internal link to the note, and finally create and send an email With a title automatically created, body automatically created, and recipient automatically created.
Since the Mail app is Scriptable, I can handle that last part with AppleScript. The parts that involve evernote give me trouble. The main problem seems to be timing. When I make the note, I have to wait a certain amount of time before I can Name the note and get the internal link. I often get the internal link for the previously created note, not the one that I am working on. I wonder whether there are better techniques for working with Evernote— Something better than doing one step and waiting 10 seconds to make sure that Evernote completes the task, and then moving onto the next step.. Everything I’m doing is available via the menus or buy control clicking in the note. I’m just having serious timing issues.
I would appreciate any general advice regarding this. Thank you.