Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set workSSID to "WORK SSID NAME"
- set workVolumes to "smb://YOUR NETWORK DRIVES"
- set currentSSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'"
- if currentSSID = workSSID then
- try
- mount volume workVolumes
- end try
- end if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement