Here is the script. Copy and Paste it into AppleScript Editor and save it as an Application.
-- -- 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" else do shell script "networksetup -setairportpower en1 on" end if
[crarko adds: I tested this, and it works as described. It follows precisely the method described in the linked Macworld article, in c ...
Source: http://feeds.macosxhints.com/click.phdo?i=ca797c685c9b8db62867024110fa3a89
No comments:
Post a Comment