(no title)
shuka | 1 month ago
Existing tools were either bloated or read-only. So I built Stash: push a Markdown file to Apple Notes, pull changes back. It uses YAML frontmatter to track which note belongs to which file.
Built with Bash, AppleScript, and Pandoc. No databases, no daemons, no config files. Install via Homebrew. Happy to take suggestions and answer questions about the quirks I ran into along the way.
nozzlegear|1 month ago
> 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?
shuka|1 month ago
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.
nemosaltat|1 month ago
shuka|1 month ago
Someone|1 month ago
So yes, it seems you do need Pandoc to do html-to-markdown and vice versa.
shuka|1 month ago
happyopossum|1 month ago
Does it support pushing to personal/home/this-is-my-note.md, or does everything wind up in the Notes root?
It appears notes have to start out externally in order to "stash pull" them, is that the case?
thanks!
shuka|1 month ago
What I tend to do—you can also see in the readme—is that I push it to Notes, then pull if I've made any changes. When you already have the id on the note, you can move your note anywhere you'd like (:
angst_ridden|1 month ago
shuka|1 month ago
d4rkp4ttern|1 month ago
shuka|1 month ago