Created
May 26, 2013 03:34
-
-
Save ikait/5651631 to your computer and use it in GitHub Desktop.
NASにいっぺんに接続するためのAppleScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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