Jump to content
MrVersano

Alfred 2.0 and Notes.app

Recommended Posts

I haven't been able to find anything on this so I figure this might be the place to ask.

I want Alfred 2 to be able to search notes in Apple's Notes app on the Mac (I'm using El Capitan).

Is there a way to do that with either a built in setting or some workflow out there?

Thanks!

Share this post


Link to post

I haven't been able to find anything on this so I figure this might be the place to ask.

 

 

Here's the workflow I've been using to search for Notes on El Capitan, which allows me to search by title or content of the note:

https://dl.dropboxusercontent.com/u/5818788/Alfred/Search%20for%20Notes.alfredworkflow

 

Use the keyword "note" followed by your search term. As I don't have a whole lot of notes, a single search has been sufficient for me, but you could theoretically add another file filter object and split search for kMDItemDisplayName (Title of note) and kMDItemTextContent (contents of your note) into individual keywords. :)

 

Enjoy!

 

Cheers,

Vero

Share this post


Link to post

Here's the workflow I've been using to search for Notes on El Capitan, which allows me to search by title or content of the note:

https://dl.dropboxusercontent.com/u/5818788/Alfred/Search%20for%20Notes.alfredworkflow

 

Use the keyword "note" followed by your search term. As I don't have a whole lot of notes, a single search has been sufficient for me, but you could theoretically add another file filter object and split search for kMDItemDisplayName (Title of note) and kMDItemTextContent (contents of your note) into individual keywords. :)

 

Enjoy!

 

Cheers,

Vero

 

Works perfectly! Thanks @Vero!!

Share this post


Link to post

@Vero would you mind if I incorporated this technique into my notes workflow?

 

 

Do anything you like - and let me know if you need a hand with anything :)

 

Also, if you post a link to your workflow when it's done, it'd be useful as I love being able to point users to a few different ones to let them find the one that fits their work flow best.

Share this post


Link to post

Hi and good day,

 
Instead of using the keyword "note" followed by your search term, I changed it to ' .n ' which is shorter and faster! :-)
 
/

with best regards,

Omar K N

Stockholm, Sweden

Share this post


Link to post

Do anything you like - and let me know if you need a hand with anything :)

 

Also, if you post a link to your workflow when it's done, it'd be useful as I love being able to point users to a few different ones to let them find the one that fits their work flow best.

Perfect. My workflow is here:

http://www.alfredforum.com/topic/1009-notes/#entry12462

 

I'm going to see if I can use a similar approach with my reminders workflow.

Share this post


Link to post

new to both mac & alfred . I download the workflow , but each time I type note ... it shows a list of items in which search notes app is on place 5 ... but when I enter space and the keyword like notes test ... the search is only on the web and the notes workflow item has disappeared after the space .

 

Any idea ?

 

Bjoern

Share this post


Link to post

new to both mac & alfred . I download the workflow , but each time I type note ... it shows a list of items in which search notes app is on place 5 ... but when I enter space and the keyword like notes test ... the search is only on the web and the notes workflow item has disappeared after the space .

 

Any idea ?

 

Bjoern

 

 

Which version of OS X are you using? This may affect where the Notes information is stored.

 

Also, this may seem like an obvious question, but are you searching for text that exists in your notes? Alfred will show the relevant notes if there are notes matching what you've typed, but will present the fallback web searches if no results match.

Share this post


Link to post

The workflow seems to work fine. 

 

However, rather than showing me the results in a list coming off of Alfred, I was hoping I could type in "Notes ABC123" and then Alfred would: 

 

     1) Open notes. 

     2) Provide me the resulting note list IN THE NOTES APPLICATION.

 

Basically, this would be reproducing the search that would otherwise be executed in the Apple Notes client. 

 

In this way, I can see all the resulting notes in their native notes application presentation. 

Share this post


Link to post
On 1/19/2016 at 10:00 AM, Vero said:

Here's the workflow I've been using to search for Notes on El Capitan, which allows me to search by title or content of the note:

https://dl.dropboxusercontent.com/u/5818788/Alfred/Search%20for%20Notes.alfredworkflow

 

Thanks for this. I'm looking at abandoning Evernote and Alfred integration is important to me, so Notes seems to be preferable to OneNote. This workflow clued me in to where the notes are stored locally and I've added ~/Library/Containers/com.apple.Notes to my search scope; now my notes show up in my searches without needing to use the Note keyword of the workflow, though it is nice to also be able to limit the scope to just notes. Bonus points for the search to also work on notes stored on my Exchange server (my pre-Evernote notes).

Share this post


Link to post
On 11/07/2016 at 8:36 AM, radioman said:

The workflow seems to work fine. 

 

However, rather than showing me the results in a list coming off of Alfred, I was hoping I could type in "Notes ABC123" and then Alfred would: 

 

     1) Open notes. 

     2) Provide me the resulting note list IN THE NOTES APPLICATION.

 

Basically, this would be reproducing the search that would otherwise be executed in the Apple Notes client. 

 

In this way, I can see all the resulting notes in their native notes application presentation. 

 

Put this in a Run Script Action with Language = /usr/bin/osascript (AS) and with input as {query}:

 

set theQuery to "{query}"

tell application "Notes" to activate

delay 0.5

tell application "System Events" to tell process "Notes"

    keystroke "f" using {command down, option down}

    delay 0.3

    keystroke theQuery

end tell

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...