Hey there, I’m wondering if there is a CRUD API for Apple Notes?
I just saw once that it’s possible through a Apple Script on Mac. But the problem for me is that the app should also run on iOS.
Does someone have an idea how to approach this?
Hey there, I’m wondering if there is a CRUD API for Apple Notes?
I just saw once that it’s possible through a Apple Script on Mac. But the problem for me is that the app should also run on iOS.
Does someone have an idea how to approach this?
I’m wondering if there is [an] API for Apple Notes?
No.
I just saw once that it’s possible through a Apple Script on Mac.
Correct.
But the problem for me is that the app should also run on iOS.
My advice is that you file an enhancement request for a Notes API, similar to the APIs we have for Calendar (EventKit), Contacts (Contacts framework), and so on. Please post your bug number, just for the record.
Using an AppleScript interface as an API is less than ideal for many reasons. One big one, as you’ve discovered, is that it’s limited to macOS. And your can’t use the equivalent technology on iOS, Shortcuts, to make progress on this. With AppleScript it’s possible to both be an AppleScript target and target other apps. With Shortcuts, you can only do the former.
So, if you want to allow the user to integrate your app in a shortcut that also involves Notes, then you should absolutely add full-featured App Intents support to your app. However, you can’t do what you can do with AppleScript on the Mac, that is, use the platform’s automation technology as a way to get around the lack of an API.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"