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 #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
joined | yes / no | true to require a Wi-Fi network, false to require none. | ||
otherThan | text | Passes on a Wi-Fi network with any name but this one. | ||
reachable | yes / no | true to require a connection, false to require none. | ||
ssid | text | Exact Wi-Fi network name, case sensitive. |
Examples #
- Press ⌃⌥J
- If Wi-Fi is “HomeWiFi”
- Show “On the home network”
- Press ⌃⌥J
- If the network isn't reachable
- Show “No connection”