- 切り替えに成功すると
true
、失敗するとfalse
が返る
switchWiFi.scpt
use framework "CoreWLAN"
--Wi-Fi ON
my switchWiFi(true)
--Wi-Fi OFF
my switchWiFi(false)
on switchWiFi(onOrOff as boolean)
--require framework: CoreWLAN
current application's CWInterface's interface()'s setPower:onOrOff |error|:(missing value)
end switchWiFi
更新履歴
- 2016-02-13: CoreWLANフレームワークを使って作成