Keep Evernote App in Background When Adding Notes?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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
LynnOnTheWeb
 
Posts: 6
Joined: Thu Mar 27, 2014 10:32 am

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?
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

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.
LynnOnTheWeb
 
Posts: 6
Joined: Thu Mar 27, 2014 10:32 am

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
LynnOnTheWeb
 
Posts: 6
Joined: Thu Mar 27, 2014 10:32 am


Return to Support