frontBrowserTabIndex
Returns the position of the current tab in the front window of the front browser, whichever of Safari and Chrome was most recently in front.
Keyboard Maestro: FRONTBROWSERTABINDEX
Details #
frontBrowserTabIndex() 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.
{{ frontBrowserTabIndex() }}
Examples #
frontBrowserTabIndex()→
0Gotchas #
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.