Saturday, May 12, 2012

How to toggle Mac WiFi (Airport) via a keyboard combination with BetterTouchTool

I was playing around with BetterTouchTool today (which, by the way, is one of the best Mac addons I've ever seen) and decided that I wanted to have a keyboard combination to toggle my Wifi settings.  BetterTouchTool gives you the ability to execute a script, however, that causes a Terminal window to open if you write a bash script.  This can be disabled through other means, but I found out it's easiest to just write an AppleScript file.

The code below is what I'm using to do this.  I've bound this script to a keystroke combination via BetterTouchTool, and it's working perfectly:

18 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thanks! A good way for saving battery. BetterTouchTool should be a standard for Apple computers! ;)

    ReplyDelete
  3. I bought a watch for my boyfriend at this online store. The watch runs on time, the quality is very good, the style of the watch is very like, it is worth buying.
    buy uk fake watches

    ReplyDelete
  4. Remaining at airport hotels is a superb thought in the event that you have an early morning flight or need a place to rest after a trip before continuing your adventure.Hotel near zona rosa kansas city

    ReplyDelete
  5. It's a similar when you arrive back late during the evening and you can't confront the trip back home, particularly if open transport isn't notwithstanding running!hotel near kansas city hotels in kansas city mo near airport

    ReplyDelete
  6. Trains raced to Malaga City Center at regular intervals from 06:49 to 23:49. The single admission is somewhere in the range of EUR1.20 and EUR1.30 relying upon the day of movement. Voyage time around 10 minutes. La quints inn and suites kansas city

    ReplyDelete
  7. One great model is a representative who discovers it excessively badly designed, making it impossible to need to take a maneuver to the downtown area to discover settlement. Another could be a carrier traveler on a corresponding flight that has been postponed.extended stay hotel in hays ks

    ReplyDelete
  8. Each travel provider needs deals delegates. Your travel specialist business contracts with travel providers to speak to their business and help them move a greater amount of their travel items. hajj 2019 packages

    ReplyDelete
  9. A hotel can be held at risk for a visitor missing his flight if the check in the room shows wrong time.Pet friendly hotel near zona rosa

    ReplyDelete
  10. We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. 192.168.0.254

    ReplyDelete
  11. Pretty much every shrewd airport is utilizing most recent innovation cameras for security purposes attributable to cost-adequacy and versatility.Airport LImo

    ReplyDelete
  12. In fact, this airport has been in the top three for the last ten years. This is a testament to the quality and efficiency by the excellent management crew. The dining situation is enhanced by the variety of Asian food on offer to the passengers of this very busy business hub.Airport and Car Service

    ReplyDelete
  13. At last, you can utilize a container to protect the radiation from the WiFi router. The counter radiation WiFi modem recieving wire boxes can retain the electromagnetic radiation and afterward convert it into heat vitality expend, which would not cause the subsequent contamination. best router for multiple devices

    ReplyDelete
  14. At the point when you have a WiFi router, you will likewise have the option to take out links and wires, which are regularly connected with ordinary wired systems. best wifi

    ReplyDelete
  15. Do they think about WiFi Security? Your personal traffic is in jeopardy. And, so, it is of no importance what exactly they are doing - treating with the e-mail or your Internet-banking, uploading pictures, making use of blogs or simply surfing the Internet. Funny WiFi Names

    ReplyDelete
  16. Thanks for another excellent post. Where else could anybody get that type of info in such an ideal way of writing? In my opinion, my seeking has ended now. https://metaforainternet.net/

    ReplyDelete