apple-notes-jxa
apple-notes-jxa copied to clipboard
execution error: Error: Error: Can't convert types. (-1700)
hi、i use this demo、report error
my os:
catalina: 10.15.4
code
const Notes = require('apple-notes-jxa');
Notes.accounts()
.then((accounts) => console.log(accounts));
error
please help me, thank you!
I'm not sure if this is the cause of the above (the "Can't convert types" just comes up in every context when things go wrong) but I found that if you refer to Application("Notes")
now you actually get the widget extension instead of the app. You have to use Application("com.apple.Notes")
.