974 B
974 B
Refactor Goals
- Speed things up. Relying on things.py (and python in general) makes the code slow. Add in the fact that the
nix-shelllogic tends to run every day and pulls down the universe, the current day reporter is quite slow - Clean up the code. Using a better language will help some, but in particular using a bonafide templating library should improve the code.
- Stability. Using
osascriptwith the Things AppleScript API will avoid future problems thatthings.pyis constantly running into because they are overly coupled to the Things sqlite database schema.
Ideas
- Move to rust using
osascriptto drive interactions with things - Write a small library of scripts in JS that rely on the OSA infrastructure to call out to things, and package up content into JSON for ease of use in rust.
Resources
I found a really great gists for working with osascript and it even has Things examples: https://gist.github.com/tommorris/99bcbbcf445bb6475797