safariTabIndex
Returns the position of the current tab in the front window of Safari.
Keyboard Maestro: SAFARITABINDEX
Details #
safariTabIndex() 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.
{{ safariTabIndex() }}
Examples #
safariTabIndex()→
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.