Developer Tools Brief source

Count the number of Safari tabs

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story. The source provided limited text, so this summary is brief.

Why it matters

Very little: it is a one-line AppleScript snippet, but any Mac user can copy-paste it today to count Safari tabs across every window.

Read this as

Simon Willison shared a tiny tip on his blog: a single AppleScript command that counts the browser tabs open in Safari, the web browser on Macs. The command, run from the terminal, asks Safari to count the tabs in every open window. In his case it returned 370 open tabs. It affects Mac users only, and the article is just a couple of lines long with no further details.

This is a trivial productiveness note, not a business story: Willison published a one-line AppleScript command for counting Safari tabs, which returned 370 for him. There is no cost, product, competitor or risk involved, and no decision-maker would act on it. Apple, Safari and Simon Willison are the only named entities, and the post includes no dates, pricing or follow-up.

The tip is a single osascript invocation: 'tell application "Safari" to count tabs of every window', which returns a list of tab counts per window via AppleScript. Willison's run returned 370 tabs. No error handling, multi-browser support or Chrome equivalent is discussed, and no screenshots of output beyond a terminal image are described.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Safari AppleScript Simon Willison osascript

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.