{"slug": "count-the-number-of-safari-tabs", "title": "Count the number of Safari tabs", "summary": "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\"'.", "body_md": "29th June 2026\n\nTiniest TIL, using AppleScript to count the number of open browser tabs in Safari:\n\n```\nosascript -e 'tell application \"Safari\" to count tabs of every window'\n```\n\n## Recent articles\n\n[Porting the Moebius 0.2B image inpainting model to run in the browser with Claude Code](/2026/Jun/22/porting-moebius/)- 22nd June 2026[sqlite-utils 4.0rc1 adds migrations and nested transactions](/2026/Jun/21/sqlite-utils-40rc1/)- 21st June 2026[Datasette Apps: Host custom HTML applications inside Datasette](/2026/Jun/18/datasette-apps/)- 18th June 2026", "url": "https://wpnews.pro/news/count-the-number-of-safari-tabs", "canonical_source": "https://simonwillison.net/2026/Jun/29/safari-tab-count/#atom-everything", "published_at": "2026-06-29 18:36:18+00:00", "updated_at": "2026-06-29 18:49:23.468234+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Safari", "AppleScript"], "alternates": {"html": "https://wpnews.pro/news/count-the-number-of-safari-tabs", "markdown": "https://wpnews.pro/news/count-the-number-of-safari-tabs.md", "text": "https://wpnews.pro/news/count-the-number-of-safari-tabs.txt", "jsonld": "https://wpnews.pro/news/count-the-number-of-safari-tabs.jsonld"}}