What is the AppleScript to identify the current status of MacBook Pro's network connection (Yosemite 10.10.3)
- Connected via Iphone USB on/off (Hotspotting to Iphone)
- Connected via WIFI ON on/off
- Connected via Ethernet on/off
- No Connection
I want to add this condition check into my Automator Workflow, so workflows run similar to many of the IOS Apps that have the setting "do not send files / do not download unless connected to WIFI"
Best Answer
If you have Network menu bar item/icon in top right menu bar. You can do:
To get connection status. For example:
Then you can parse the string/list to check if a certain word is present.