sballin / alfred-search-notes-app

Use Alfred to quickly open notes in iCloud/Apple Notes.
https://www.alfredforum.com/topic/11716-search-appleicloud-notes/
MIT License
528 stars 24 forks source link

Can't open notes contained in “On my Mac” if iCloud notes also present #40

Closed Cykelero closed 3 years ago

Cykelero commented 3 years ago

To Reproduce Make sure the Notes app both contains notes synced through iCloud, and notes stored locally (in the “On My Mac” section). Use the workflow to search for a note from the On My Mac section, and press enter to open it; nothing happens.

Info

Additional context Before I enabled iCloud note syncing (and therefore only had the “On My Mac” section), the workflow could open notes from this section just fine. To be clear, the workflow still finds these notes (they're listed in the results) but can't open them (actionning the result doesn't do anything).

As a test, I changed the default account in Notes preferences, from iCloud to On My Mac, and predictably this flips the issue: with that setting, the workflow can't open iCloud notes anymore, but can open local notes.

sballin commented 3 years ago

It makes sense that this is happening, but I agree it's not good behavior... the workflow always shows the note with the given id "in the default account" because there was a subtle bug happening before without that specifier. It is possible for the script to specify the right account. I'll try to fix this in the next release.

sballin commented 3 years ago

Should be fixed in version 3.4.0.

Cykelero commented 3 years ago

Can confirm it now works for me!