This is my first "published" extension for the wonderful Alfred application. If you're using Alfred on your Mac, you already know how amazing it is. If not, I encourage you to check it out! Users who have purchased the Powerpack have the added benefit of being able to add a number of awesome extensions to their Alfred app. These extensions cover a wide range of needs; everything from, allowing you to:
- control your music
- search your Evernote notebooks
- ask Wolfram Alpha something
- toggle which sound output device is active (this extension, woohoo!)
- start a new Toggle.com timer (I'll be publishing this extension soon)
- and many, many more...
The extension I'm publishing here, adds a keyword that will let you quickly toggle the sound output device. The idea came from a blog post I came across. Basically, using Applescript, we can tell Alfred to open the Sound preference pane and toggle between the first and second output devices. This is very convenient if, for example, you often change the sound output device from your "Internal Speakers" to your "HDMI Output."
If you are on a system with more than 2 sound output devices, you can either modify the Applescript code to choose the two devices to toggle, or you can modify the Applescript to toggle between more devices. If you only have one device, as is the case on my Macbook Air if I don't have my HDMI adapter plugged in, you'll get a friendly growl message saying "Internal Speakers is the only device" (for example). This is just one of the improvements I made to the script posted in the aforementioned blog post.
To install, just download the extension and double-click it. This will open up Alfred's preferences and automatically install the extension. You can then use the extension by using the keyword "soundtoggle" (chances are good that you only have to type part of this to get to the extension).



Add new comment