Skip to content

Instantly share code, notes, and snippets.

View mattrb's full-sized avatar
🎯
Focusing

Matt ROYSTON-BISHOP mattrb

🎯
Focusing
View GitHub Profile
@mattrb
mattrb / gist:5994eda5f60c52cb5e195877ea14a9c6
Last active February 21, 2026 16:41
Mac Automator Script - Audio - Convert .wav to FLAC and normalise to -23LUFS
#!/bin/zsh
# --- 1. ENVIRONMENT & TOOLS CHECK ---
# Ensures the script can find Homebrew's FFmpeg and ffprobe binaries.
export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
if ! command -v ffmpeg &> /dev/null; then
osascript -e "display alert \"FFmpeg Not Found\" message \"Please install FFmpeg via Homebrew (brew install ffmpeg).\" as critical"
exit 1
fi