News for hackers. Stuff that matters.
Re:Show HN: Stash – Sync Markdown Files with Apple Notes via... by nozzlegear on Tuesday January 06, 2026 @01:53PM (#46516766)
I love Apple Notes, but I also love writing in vim; looks like I can finally reconcile those two things thanks to your project. Nice work!

> questions about the quirks

I've used a decent amount of AppleScript to automate things on my Mac, so I know it's a powerful tool but not easy to just jump into, even when you're already familiar with that bizarre syntax. What kinds of quirks did you run into?

Re:Show HN: Stash – Sync Markdown Files with Apple Notes via... by shuka on Friday January 09, 2026 @03:29AM (#46551356)
It's a mix of the lack of documentation for the response payloads and the integration with the shell commands. My tip would be to wrap everything in shell, handle errors on the AppleScript end, and keeping it incredibly simple.

For example, the errors raised from the AppleScript without printing the error inside a try-catch are incredibly dim. So instead I've opted to wrap them on the AppleScript level, print the error and return an empty string. Kinda reminded me of old-school shitty C code.