Sampayo Posted April 2, 2013 Share Posted April 2, 2013 (edited) Audio Switch ================================================================================== Switch between your input sources and output devices. To install just download (or my github) and doble click the .alfredworkflow file.* To change your input source type input (it could take a little bit to load your sources), then select the one you desire The same for the output device, just type output then select your choice Since I don't have any audio device or source connected to my laptop only 1 (the default) device and source are shown. Edited April 3, 2013 by Sampayo husk, Florian, deanishe and 10 others 12 1 Link to comment
DJay Posted April 2, 2013 Share Posted April 2, 2013 Nice. Very handy. Thanks for sharing. Link to comment
Florian Posted April 2, 2013 Share Posted April 2, 2013 Really cool. Any chance you could add a little subtitle or something to indicate the current one? Link to comment
RodgerWW Posted April 3, 2013 Share Posted April 3, 2013 Wow ... this is nice and thank you! Now, if we could only get the other 'helpers' to work with ML so the prefs don't have to pop up. Link to comment
Sampayo Posted April 3, 2013 Author Share Posted April 3, 2013 Really cool. Any chance you could add a little subtitle or something to indicate the current one? Done, download the latest version . Also Alleyoop support was added. Florian 1 Link to comment
bcometa Posted April 5, 2013 Share Posted April 5, 2013 very quick for switching audio output to apple tv! Link to comment
Jacob Graf Posted April 8, 2013 Share Posted April 8, 2013 Great job. Works great. Would anyone have any idea how to modify this to support preset input/outputs? So if I take a call, I could bring Alfred up and select the "Phone Call" preset which would switch audio input/output to my headset in one easy step? Or I could set up a preset to have the output set to my speakers, but the input set to my bullet mic, etc? This would be amazing and I haven't found any other Mac audio switching apps that support presets. Thanks! Link to comment
baum2k Posted April 10, 2013 Share Posted April 10, 2013 Don't work on my iMac late 2012. I installed the workflow and then type output in the Alfred-Field and then it shows me "getting output devices" but nothing happens. I waited for over 10!!! minutes...nothing happened. Could it be, because my OS X is in german? Link to comment
DJay Posted April 10, 2013 Share Posted April 10, 2013 Don't know what the issue is but can not be the german system. I run the german OS X and here is no problem. Sorry pal. Link to comment
mixterdee Posted April 10, 2013 Share Posted April 10, 2013 Thanks for this, thumbs up from me. Link to comment
Sampayo Posted April 10, 2013 Author Share Posted April 10, 2013 Don't work on my iMac late 2012. I installed the workflow and then type output in the Alfred-Field and then it shows me "getting output devices" but nothing happens. I waited for over 10!!! minutes...nothing happened. Could it be, because my OS X is in german? Could you please take the script filter code and run it on AppleScript Editor and post the error you're getting? Link to comment
baum2k Posted April 11, 2013 Share Posted April 11, 2013 (edited) Yes I'll do it tonight, when I am home! Edited April 11, 2013 by baum2k Link to comment
jkirker Posted June 13, 2013 Share Posted June 13, 2013 (edited) Just an FYI - I upgraded to 10.9 Mavricks and the "input" is working, but the "output" isn't returning a list - even when I enter into it. ;( When I run the code in AppleScript I get the following: error "System Events got an error: Can’t get text field 1 of row 6 of table 1 of scroll area 1 of tab group 1 of window 1 of process \"System Preferences\". Invalid index." number -1719 from text field 1 of row 6 of table 1 of scroll area 1 of tab group 1 of window 1 of process "System Preferences" I believe this is due to a dividing line and then all of the new AirPlay output options. Edited June 13, 2013 by jkirker Link to comment
Hiram Posted June 16, 2013 Share Posted June 16, 2013 Hi, When I run this, the Output Audio Switch is the first result, but when I activate it (return), the word "output" is comleted and I see my fallback web search options as the results, not the different audio output devices that I have at my disposal. Am I overlooking something? Link to comment
jkirker Posted June 16, 2013 Share Posted June 16, 2013 Hi, When I run this, the Output Audio Switch is the first result, but when I activate it (return), the word "output" is comleted and I see my fallback web search options as the results, not the different audio output devices that I have at my disposal. Am I overlooking something? Hiram, are you using the beta of Mavrick's? If so, it's the same issue that I'm facing. Link to comment
Sampayo Posted July 1, 2013 Author Share Posted July 1, 2013 Just an FYI - I upgraded to 10.9 Mavricks and the "input" is working, but the "output" isn't returning a list - even when I enter into it. ;( When I run the code in AppleScript I get the following: error "System Events got an error: Can’t get text field 1 of row 6 of table 1 of scroll area 1 of tab group 1 of window 1 of process \"System Preferences\". Invalid index." number -1719 from text field 1 of row 6 of table 1 of scroll area 1 of tab group 1 of window 1 of process "System Preferences" I believe this is due to a dividing line and then all of the new AirPlay output options. Just an FYI - I upgraded to 10.9 Mavricks and the "input" is working, but the "output" isn't returning a list - even when I enter into it. ;( When I run the code in AppleScript I get the following: error "System Events got an error: Can’t get text field 1 of row 6 of table 1 of scroll area 1 of tab group 1 of window 1 of process \"System Preferences\". Invalid index." number -1719 from text field 1 of row 6 of table 1 of scroll area 1 of tab group 1 of window 1 of process "System Preferences" I believe this is due to a dividing line and then all of the new AirPlay output options. Hi, When I run this, the Output Audio Switch is the first result, but when I activate it (return), the word "output" is comleted and I see my fallback web search options as the results, not the different audio output devices that I have at my disposal. Am I overlooking something? Hi, Since the problem is solved Mavericks. You can download it once again I hope it works. : D Link to comment
jkirker Posted July 2, 2013 Share Posted July 2, 2013 Thank you so much for this - it's a great timesaver! Here's the links again from above... To install just download (or my github) and doble click the .alfredworkflow file.* Hi, Since the problem is solved Mavericks. You can download it once again I hope it works. : D Link to comment
hzlzh Posted July 6, 2013 Share Posted July 6, 2013 You can share your workflow on the List site below~ Link to comment
RBenschop Posted January 8, 2014 Share Posted January 8, 2014 I still can't get my Airplay devices in the list. Link to comment
a-b Posted January 13, 2014 Share Posted January 13, 2014 It would be really handy to have an option to switch volume for DLNA devices Link to comment
_oho Posted January 30, 2014 Share Posted January 30, 2014 (edited) Hello, very nice workflow. I found issues while using it (did not work at first place). After investigation I found that: 1) I did not set first the option to "Enable access for assistive devices and applications" (see: http://support.apple.com/kb/HT6026). Without this, the workflow does not work. 2) my language is in French and it did not work unless I set "deviceselected" as «class utf8» as follow: set deviceselected to the value of text field 1 of row i of table 1 of scroll area 1 of tab group 1 of window 1 as «class utf8» Indeed, my headphone is named: "écouteur" ... I wanted to do a pull request, but it's looks like the GitHub code is not updated. is it ? Otherwise, any idea why when my headphone is plugged I don't see in the list of output my local speaker (named Haut-parleurs internes in French)? I would love to be able to switch between local speakers and headphone without need to unplug my local headphone. That would be my main usage after send it through AirPlay ... And it's the all point of the workflow ... Olivier. Edited January 30, 2014 by _oho Link to comment
Florian Posted August 14, 2014 Share Posted August 14, 2014 Done, download the latest version . Also Alleyoop support was added. Wow I had never seen that you implemented my request, super nice Link to comment
gerosnet Posted December 8, 2014 Share Posted December 8, 2014 hey guys i'm having a problem that started recently. I'm running OS X 10.9.5 (Yosemite) and i've been using this workflow for a while now but now it's not working. It opens system preferences but the Alfred window says Search Google for 'output '. When running it on Script Editor I get the following error: error "System Events got an error: Script Editor is not allowed assistive access." number -1719 from window 1 of process "System Preferences" But I actually have Script Editor allowed to control my computer in the Accessibility thing... Anyone knows what is happening? Thanks Link to comment
Sampayo Posted December 10, 2014 Author Share Posted December 10, 2014 hey guys i'm having a problem that started recently. I'm running OS X 10.9.5 (Yosemite) and i've been using this workflow for a while now but now it's not working. It opens system preferences but the Alfred window says Search Google for 'output '. When running it on Script Editor I get the following error: error "System Events got an error: Script Editor is not allowed assistive access." number -1719 from window 1 of process "System Preferences" But I actually have Script Editor allowed to control my computer in the Accessibility thing... Anyone knows what is happening? Thanks Hi Geronest. have you given accessibility permissions to Alfred in system preferences? have a look to 'Solution in case of failures' in http://ricardosampayo.com/en/Audio-Switch-Alfred-WorkFlows/ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now