I have read at multiple places that the folder /Library/Preferences/SystemConfiguration
is supposed to "change" in case that I unplug a network cable.
Now, I have a MacBook Pro, so I use a USB3 adapter to connect a network cable.
Indeed, nothing changes when I plug or unplug it within this folder. I clearly see in "Network settings" that the LAN connection is established or dropped when I plug or unplug the cable.
Where should anything change? Is there some folder or anything else that I can use as trigger for AppleScript, when plugging/unplugging the network cable?
sudo dmesg
. Then disconnect your network.sudo dmesg
again to see to see the disconnect event. Plug back in andsudo dmesg
again to see the connection message. As far as programmatically getting access to this, I don't believe AppleScript has this ability.