Hey, I know nothing about code and found this online
--
-- Toggle Airport Power On and Off
--
if (offset of "On" in (do shell script "networksetup -getairportpower en0")) > 0 then
do shell script "networksetup -setairportpower en0 off"
else
do shell script "networksetup -setairportpower en0 on"
end if
I need to assign this to fn6, because my wifi constantly has to be reloaded (10-20 minutes). Can anyone write the full code so i can copy and paste into applescript and whatever else i need to do.
--
-- Toggle Airport Power On and Off
--
if (offset of "On" in (do shell script "networksetup -getairportpower en0")) > 0 then
do shell script "networksetup -setairportpower en0 off"
else
do shell script "networksetup -setairportpower en0 on"
end if
I need to assign this to fn6, because my wifi constantly has to be reloaded (10-20 minutes). Can anyone write the full code so i can copy and paste into applescript and whatever else i need to do.