Implementing One-Click Evernote Search in Alfred

May 30, 2020 · 1 min read · 181 Words · -Views -Comments

Recently, I’ve been thinking about how to implement Evernote search in Alfred. Fortunately, someone in the community already created a version, but it supports Alfred 3 and Evernote, so some improvements are needed. Of course, if you’re not satisfied with the functionality, you can customize it yourself. Let’s get started.

Current Effect

Download link: Click here

Want to know how it’s done? Keep reading.

Script Modification

Replace two places in the scpt file:

  • Replace com.evernote.Evernote with com.yinxiang.Mac
  • Replace com.runningwithcrayons.Alfred-3 with com.runningwithcrayons.Alfred

Viewing App Signatures

How do you get the signature information of the target app? Use the following command:

codesign -dv --verbose=4 /Applications/YourApp.app

Final Thoughts

  • Building on the work of predecessors, supporting Yinxiang Biji (Evernote China) was achieved with just two replacements, which is relatively simple.
  • Why can Alfred achieve Evernote search? The feasibility lies in the fact that Evernote itself has opened up some APIs and provides AppleScript support. For details, see Evernote Developer API.
  • Yinxiang Biji is Evernote’s localized product for the Chinese market, but the core functionality is still Evernote, so it is also supported.

References

img

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover