Thanks @_jims
I really appreciate you taking the time to reply and for sharing those examples. I’ll definitely file this approach away for future use.
In this case I’m working to “improve” my version of
The triggering event I need is the connection to a specific Wi‑Fi network that does not play nicely with iCloud Private Relay. The macro works great if my Mac is just doing its normal amount of work, but it can run into trouble if all of the “Open at Login” apps are still launching while it is trying to turn off iCloud Private Relay. My goal is to let the Wi‑Fi trigger fire and then wait for the startup “madness” to settle down before making the change.
So your solution is nicely tuned to the login event, whereas my use case is more tightly coupled to a particular Wi‑Fi network connection.
Still, many thanks again for the detailed examples — they’re very helpful, and I’m sure I’ll be able to put them to good use in another context.