You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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 Top-ranking 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 Account.