Browse the docs

Network

Passes when the Mac has a network connection or is on a given Wi-Fi network.

The Mac is on Wi-Fi ssid

Details #

With reachable, passes when the Mac's network state matches: true for online, false for offline. With ssid, passes when the current Wi-Fi network has exactly that name. joined passes when the Mac is on any Wi-Fi network (true) or on none (false), and otherThan passes when it is on a Wi-Fi network with a different name. Every param you give must hold. With none, the condition passes when the Mac is online. macOS gives the Wi-Fi name only with Location access; without it the Mac counts as on no network.

Every condition accepts "negate": true, which flips the verdict. The trace records what was compared before the flip, so a negated condition that blocks a macro still shows the real values.

Conditions in an Only if list combine with all: every one must pass, and an empty list always passes. An if step or a repeat loop takes a match of all (default) or any.

The trace shows reachable when you gave it (or gave nothing) and, if you gave ssid, joined or otherThan, ssid: the name of the current network (nothing when not on Wi-Fi).

Parameters #

ParameterTypeRequiredValuesWhat it does
joinedyes / notrue to require a Wi-Fi network, false to require none.
otherThantextPasses on a Wi-Fi network with any name but this one.
reachableyes / notrue to require a connection, false to require none.
ssidtextExact Wi-Fi network name, case sensitive.

Examples #

Only at home
When
  1. Press ⌃⌥J
Only if
  1. If Wi-Fi is “HomeWiFi”
Do
  1. Show “On the home network”
Open in Switchboard to try it
Only when offline
When
  1. Press ⌃⌥J
Only if
  1. If the network isn't reachable
Do
  1. Show “No connection”
Open in Switchboard to try it

See also #