Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '"Airplane mode" for OS X ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
"Airplane mode" for OS X
Authored by: metiure on Mar 26, '13 11:10:17AM

A simple AS to toogle AirPort command. Change your interface accordingly:

-- Toggle Airport Power On and Off
if (offset of "On" in (do shell script "networksetup -getairportpower en1")) > 0 then
do shell script "networksetup -setairportpower en1 off"
do shell script "networksetup -setairportpower en1 on"
end if

[ Reply to This | # ]