Mail Weekly Reads Script Command
Part of the Raycast series
As I mentioned previously, I have a Weekly Reads page that I set up to make it easier for me to share articles with my dad and brother (and anyone else who cares), complete with RSS feed. But let’s be real, neither of them wants to be bothered with my feed because they have stuff to do and we already have a tradition of emailing links to each other.1
Last night I created a Raycast Script Command that looks at the markdown file for my latest Reads update, parses and reformats it for email, and mails it out to them. It looks like this:
It takes one parameter when I run the script so that I can give the email a cutesy custom subject (another idea I stole from my brother).
Then it parses the latest file in my web project’s /src/content/reads directory, replaces markdown links with “commentary → link title – link” for each link and following commentary paragraph in the page, and gives that to an AppleScript to send the mail.
From this markdown page that generates the individual HTML reads page:
To this email that gets sent to my long-suffering family members:
It’s simple and effective. You can do this and make your family hate you too.
Footnotes
-
Fine, it’s my brother’s tradition and I’m stealing it, much to his annoyance I’m sure. ↩