Applescript: return focus to another app after script runs

I'm currently running the following script via Hazel to back up plain text notes in a specific folder to Evernote:


tell application "Evernote"

activate

create note from file theFile notebook {"!inbox"} tags {"to review"}

end


Is there any way to do this so it happens in the background i.e. returns focus to whatever app was active when the script is triggered?


Thanks in advance for any responses.

Posted on Feb 8, 2015 2:22 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Applescript: return focus to another app after script runs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.