Browse the docs

A browser is in front

Passes while a known browser, or the one you name, is the front app.

A browser is in front

Details #

True when the front app is Safari, Safari Technology Preview, Chrome (or Beta, Canary, Chromium), Arc, Brave, Edge or Vivaldi. browser narrows it to safari or the Chrome family (chrome).

Parameters #

ParameterTypeRequiredValuesWhat it does
browserone ofsafari chrome anysafari, chrome or any.
sampleany value

Examples #

Only in a browser
When
  1. Press ⌃⌥J
Only if
  1. If a browser is in front
Do
  1. Show “In a browser” for 1 s
Open in Switchboard to try it

Gotchas #

  • It doesn't need the extension.