Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How To Get WiFi SSID With AppleScript

Hello all, I would like to be able to get my current WiFi SSID set as an applescript variable

MacBook Pro, OS X Mountain Lion (10.8.4)

Posted on Jul 20, 2013 2:22 PM

Reply
Question marked as Best reply

Posted on Jul 20, 2013 3:40 PM

set mySSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resour ces/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'"

display dialog "SSID = " & mySSID as string

5 replies

How To Get WiFi SSID With AppleScript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.