Closed NeighNeighNeigh closed 3 years ago
Thanks for the report. I can't reproduce this... Can you verify that Alfred has permissions enabled in System Preferences > Security & Privacy > Privacy > Accessibility, Full Disk Access, Files and Folders, and Automation (for which there should be an "Alfred 4 > Notes" checkbox)?
If that doesn't fix it, what is your system language? Does this happen when you try to get the URL for a particular note, or any one of them?
Hi thanks for getting back to me. Alfred has permissions in all those places. My system language is English (Australia). And the problem occurs with all notes. I should mention the rest of the workflow functions and if I manually create a notes:// link, the Note Opener app works as expected.
Hmm, that's weird. You could try copying it into Script Editor.app and seeing where it goes wrong. If you need some guidance, I would start with trying just this to see if it works:
use framework "Foundation"
use scripting additions -- fixes errors due to previous line
property NSString : a reference to current application's NSString
property NSCharacterSet : a reference to current application's NSCharacterSet
tell application "Notes"
set q to "x-coredata://E56025F2-FC6A-42A7-8A73-EC73F575F9EF/ICNote/p3007?"
set q to text 1 thru ((offset of "?" in q) - 1) of q
end tell
then keep adding lines before end tell
and see where the error happens.
Seems that error crops up immediately :(
Can you try restarting? And if that doesn't fix it, try unchecking and rechecking the permission checkboxes.
Im so sorry to report that neither has made a difference. Unfortunately for now I have to go to bed (its 2:33am here lol)
Oh, I think we encountered this issue before! Try changing the line to
set noteName to name of note id q in default account
Hey that fixed it, thanks. It's so nice to have note linking functionality 💛
Using the copy note as URL feature throws error
Here is the debug log output
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):