Browse the docs

chromeTabIndex

Returns the position of the current tab in the front window of Google Chrome.

Keyboard Maestro: CHROMETABINDEX

Details #

chromeTabIndex() takes no arguments and returns a number: the index of the current tab in the front window, as the browser itself numbers it (the first tab is 1).

Parameters #

Takes 0 arguments. {{ chromeTabIndex() }}

Examples #

chromeTabIndex()
→ 0

Gotchas #

  • Needs Automation permission for the browser (System Settings, Privacy & Security, Automation). Without it, or when the browser isn't running, the answer is 0.

  • Takes no arguments.