Bits and bytes of code

Bytes is my collection of short-form posts, tips, and things I learn as I build software.

I recently came across a Raycast extension that allows you to play/pause music from YouTube music while it's running in your browser. After exploring how it worked internally given I was a bit astonished it is even possible, I found that it's all just using AppleScript.

I was writing a script the other day that I needed to accept some optional arguments. I found that I could use the getopt command, but turns out the simple approach was cleaner in the end.

Previous page