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
502 stars 23 forks source link

search_notes error panic: unable to open database file: operation not permitted #49

Closed kevinebaugh closed 2 years ago

kevinebaugh commented 2 years ago

To Reproduce

Steps/context to reproduce the behavior:

  1. Search for a note
  2. Error below

Error text

Please copy this entire text if submitting an error report. You may need to scroll.

panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
github.com/sballin/alfred-search-notes-app/main.go:502
main.main()
github.com/sballin/alfred-search-notes-app/main.go:515 +0x654

macOS: 11.5.1
Alfred: 4.5.1
Workflow: 3.4.1
CPU: arm64e
Binary xattrs: com.dropbox.attrs
Notes DB xattrs: com.apple.quarantine
Binary info: 0755 501/ke 20/staff
Notes DB info: 0644 501/ke 20/staff
Query: title ''
Accounts: (-1743) Not authorized to send Apple events to Notes.

Info

Fill out this information if it's not already included in the error text.

kevinebaugh commented 2 years ago

Fixed by restarting Alfred. Sorry to bother @sballin and thanks for a great workflow!

sballin commented 2 years ago

Glad it worked out!