Skip to content

Instantly share code, notes, and snippets.

@ikait
Created May 26, 2013 03:34
Show Gist options
  • Save ikait/5651631 to your computer and use it in GitHub Desktop.
Save ikait/5651631 to your computer and use it in GitHub Desktop.
NASにいっぺんに接続するためのAppleScript
set ssid to (do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport --getinfo")
if ssid contains "家のSSID" then
tell application "Finder"
delay 10
mount volume "afp://サーバのアドレス/ディレクトリ(任意)"
-- 複数マウントしたいときは上の行をコピペして増やす
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment