TIL: Count Open Safari Tabs With One AppleScript Line
simonwillison.net·low signal
A tiny Willison TIL: `osascript -e 'tell application "Safari" to count tabs of every window'` returns the number of open Safari tabs. Trivial on its own, but a handy automation primitive for anyone scripting browser hygiene or tab-overload telemetry on macOS.