I would like to retrieve the SSID within Applescript from the current WiFi connection and then make a notification of the SSID address via Growl (not hardwaregrowler).
How do I do this?
Within Applescript I know you can read out the SSID via:
set SSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk -F':' '/ SSID/ {print $2}'"
The result is then the name of the WiFi network to which my computer is connected. However I do not know how to make a hook that would show the result as a Growl message.
Via the following shell script I can make the SSID and BSSID visible :
/System/Library/PrivateFrameworks/Apple80211.\framework/Versions/A/Resources/airport --getinfo | grep SSID
This gives me an even better result, but how do I parse the output to Growl as a notification that I am connected to that specific network?
How do I do this?
Within Applescript I know you can read out the SSID via:
set SSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk -F':' '/ SSID/ {print $2}'"
The result is then the name of the WiFi network to which my computer is connected. However I do not know how to make a hook that would show the result as a Growl message.
Via the following shell script I can make the SSID and BSSID visible :
/System/Library/PrivateFrameworks/Apple80211.\framework/Versions/A/Resources/airport --getinfo | grep SSID
This gives me an even better result, but how do I parse the output to Growl as a notification that I am connected to that specific network?