cd /news/developer-tools/count-the-number-of-safari-tabs · home topics developer-tools article
[ARTICLE · art-43869] src=simonwillison.net ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Count the number of Safari tabs

A developer shared a tiny AppleScript tip to count the number of open Safari tabs using the command 'osascript -e "tell application \"Safari\" to count tabs of every window"'.

read1 min views1 publishedJun 29, 2026

29th June 2026

Tiniest TIL, using AppleScript to count the number of open browser tabs in Safari:

osascript -e 'tell application "Safari" to count tabs of every window'

Recent articles #

Porting the Moebius 0.2B image inpainting model to run in the browser with Claude Code- 22nd June 2026sqlite-utils 4.0rc1 adds migrations and nested transactions- 21st June 2026Datasette Apps: Host custom HTML applications inside Datasette- 18th June 2026

── more in #developer-tools 4 stories · sorted by recency
── more on @safari 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/count-the-number-of-…] indexed:0 read:1min 2026-06-29 ·