Browse the docs

browserTabCount

Returns how many tabs the front browser has open, in every window.

Details #

browserTabCount() takes no arguments and returns a number: every tab of the front browser, in every window. It reads the extension, so it is exact when the extension is connected; without it, it counts the front window's tabs through AppleScript. For one window only, use frontBrowserTabCount().

Parameters #

Takes 0 arguments. {{ browserTabCount() }}

Examples #

browserTabCount()
→ 0

Gotchas #

  • Private windows are left out unless Settings ▸ Browsers allows them.