I need a macro that will connect via Wi-Fi IF my Mac is NOT connected via a Ethernet cable, and IF I am connected via Ethernet, then disable Wi-Fi.
But I do not see a way to determine IF my Mac is connected via Ethernet.
Note that even when I am connected via Ethernet, the WiFi connection is also available.
From your two scripts, I have cobbled together this simple test macro.
It seems to work, but I still hope to find direct AppleScript solution to detecting the Ethernet connection.