Page 1 of 1

Keep Evernote App in Background When Adding Notes?

PostPosted: Tue Mar 31, 2015 1:31 pm
by LynnOnTheWeb
Is it possible to put something in an Applescript (or somewhere else) that prevents Evernote from coming to the front when Hazel is creating a new note?

This is the script that I'm using:
Code: Select all
tell application "Evernote"
   activate
   create note from file theFile notebook "Elizabeth"
end tell


Thanks

Lynn

Re: Keep Evernote App in Background When Adding Notes?

PostPosted: Tue Mar 31, 2015 3:15 pm
by Mr_Noodle
That seems to be an issue with Evernote. One way to test is to run the script outside of Hazel. Also, is Evernote busy with something else when the script runs?

Re: Keep Evernote App in Background When Adding Notes?

PostPosted: Wed Apr 01, 2015 4:07 pm
by LynnOnTheWeb
When I run the script through Automator it brings Evernote to the front, as well.

I don't think this is in anyway a Hazel specific question, I was just hoping someone here had the answer since it's likely part of several people's workflow.

Re: Keep Evernote App in Background When Adding Notes?

PostPosted: Wed Apr 01, 2015 5:45 pm
by LynnOnTheWeb
I found the solution and thought I'd post it here for others to find.

I removed the word 'activate' from the script. Now it reads:

Code: Select all
tell application "Evernote"
   create note from file theFile notebook "~Inbox"
end tell