Hi,
i changed the wifi apple script to
on alfred_script(q)
set wifi to (do shell script "networksetup -listallhardwareports | grep -A 1 Wi-Fi | tail -n 1 | cut -b 9-12")
if (offset of "On" in (do shell script "networksetup -getairportpower " & wifi & " ")) > 0 then
do shell script "networksetup -setairportpower " & wifi & " off"
else
do shell script "networksetup -setairportpower " & wifi & " on"
end if
end alfred_script
I defined the variable wifi which will grep the wifi interface from networksetup so it shouldn't matter wether your wifi card is en0,en1...en20
I could only test it on my machine so i am not 100% sure it'll work for everyone.
Mike