edc1591 Posted May 9, 2013 Share Posted May 9, 2013 (edited) Hi all, I've been getting lots of requests to update this workflow to make it compatible with Ruby >=2.0 which is what's been shipping with the past couple releases of macOS. Well, I took some time this week to finally do it and also added a few new features. Results will now show their album art, and the pairing process has been improved. You can also now search by artist name and album title. I've also renamed the workflow to iTunes DJ (reminiscent of the original queuing feature in iTunes). See the README on Github for more info and download links. ------------------------------------------- ORIGINAL POST ------------------------------------------- Hey Guys! Up Next is one of my favorite features of iTunes 11, but adding songs to it can be pretty tedious. That's what this workflow tries to fix. You can search for songs right in Alfred and quickly queue them to be played in iTunes! The source is available on Github. Feel free to fork it and submit pull requests. Here's a download of the workflow that you can import directly into Alfred. This workflow works similarly to the iOS Remote app. Because of this, it needs to be paired with iTunes before you can use it. To do that just follow these instructions: iTunes must be open to complete the pairing process. Invoke Alfred and type pair followed by a 4-digit numeric pin number and hit enter. Switch to iTunes and click the devices button in the top right. Then click on Alfred in the devices list and enter your 4-digit pin. Now you're all set to start queuing songs! Just type "next" followed by the name of a song and Alfred will search as you type. Then just hit enter on the song you'd like to queue. Enjoy! Known Issues: Searching can be slow for large libraries Can only search using song titles, not artists or albums Edited November 16, 2016 by edc1591 tschoof, DJay and shadylane 3 Link to comment
Ddyracer Posted May 9, 2013 Share Posted May 9, 2013 Hey Guys! Up Next is one of my favorite features of iTunes 11, but adding songs to it can be pretty tedious. That's what this workflow tries to fix. I think i could use some help pairing. I type in a numeric 4 digit number and just get a google suggestion. Link to comment
bencfd Posted May 9, 2013 Share Posted May 9, 2013 Hi! This sounds really great! However, as soon as I start to type the pin, Alfred shows the fallback search (so it's impossible to pair Alfred to iTunes). In addition, do you think it would be possible aldo to support "Add to queue" and generate Genius playlist that way? Link to comment
jeffbyrnes Posted May 9, 2013 Share Posted May 9, 2013 @TingTingBen, if you give it a moment, Alfred should realize that "pair" should trigger an action for this workflow; mine initially showed me the fallback search, then switched to the pair process. Link to comment
bencfd Posted May 9, 2013 Share Posted May 9, 2013 @TingTingBen, if you give it a moment, Alfred should realize that "pair" should trigger an action for this workflow; mine initially showed me the fallback search, then switched to the pair process. I'm afraid it's not just a time problem. By pasting the pin code in Alfred, I managed to get Alfred display "pair 1234", and the so-called "Please wait" subtext appears as it should ("Pairing..."). But after few seconds, the fallback searches show again. Has anyone else managed to pair Alfred to iTunes? Link to comment
edc1591 Posted May 9, 2013 Author Share Posted May 9, 2013 TingTingBen, Do you see the following screenshot during the pairing process? If you do see something similar to this, hit enter then switch to iTunes to finish pairing. Link to comment
bencfd Posted May 10, 2013 Share Posted May 10, 2013 TingTingBen, Do you see the following screenshot during the pairing process? No, Alfred turns to fallback search instead (as soon as I type the first digit). Link to comment
freshfish Posted May 10, 2013 Share Posted May 10, 2013 Has anyone else managed to pair Alfred to iTunes? Worked for me no problem Link to comment
bgartner Posted May 10, 2013 Share Posted May 10, 2013 Works for me as well. It would be amazing if you could add the ability to create a genius playlist off a song as the remote app can do. Link to comment
shadylane Posted May 10, 2013 Share Posted May 10, 2013 edc1591, this workflow is unbelievably awesome!!! Great job, thank you so much I do see one little issue though: I can't add tracks with an apostrophe in the title. I noticed this while I was trying to add Led Zeppelin's "That's the way" - the track just would not get added, no matter what. I tried a couple of other tracks and all worked fine (all without apostrophe). So I tested this with a dozen or so songs and sure as hell, the ones with an apostrophe don't get added. Also the notification appears with the text "queued" only (for tracks with an apostrophe), the track title is missing: Does anybody else see this? Link to comment
edc1591 Posted May 10, 2013 Author Share Posted May 10, 2013 (edited) No, Alfred turns to fallback search instead (as soon as I type the first digit). Try this, Open Alfred's preferences and go to the Workflows pane Right click on the Up Next workflow and then click "Show in Finder" Open Terminal in /Applications/Utilities In Terminal, type "cd " (note the space at the end) and then drag the little blue folder icon from the top on the finder window into the terminal window and hit enter Now in Terminal, type "ruby pair.rb " followed by a 4-digit number pin and hit enter Paste the results here I do see one little issue though: I can't add tracks with an apostrophe in the title. I'll look into this right away! Edited May 11, 2013 by edc1591 Link to comment
edc1591 Posted May 10, 2013 Author Share Posted May 10, 2013 Turns out Alfred does not support escaping single quotes. So, until they fix that, you can't search for songs with a single quote in the title. Link to comment
shadylane Posted May 10, 2013 Share Posted May 10, 2013 Thanks for looking into it! It's a shame though... maybe this should be posted in the "feature suggestions" forum (if it hasn't been already). Anyway, apart from the single-quotes-thing the workflow performs perfectly, thanks again! Link to comment
bencfd Posted May 11, 2013 Share Posted May 11, 2013 4. In Terminal, type "cd " (note the space at the end) and then drag the little blue folder icon from the top on the finder window into the terminal window and hit enter I assume you referred to the main folder of the workflow. Unfortunately, I got no result to paste (only the basic command invite). Link to comment
Ddyracer Posted May 11, 2013 Share Posted May 11, 2013 I can't get it to work either, and i did do the steps for terminal. Link to comment
dfay Posted May 11, 2013 Share Posted May 11, 2013 It took me a couple tries to get it to pair, but eventually Alfred did show up in the devices list. It works - but artist and album matching would make it a lot more useful.... Link to comment
edc1591 Posted May 11, 2013 Author Share Posted May 11, 2013 I assume you referred to the main folder of the workflow. Unfortunately, I got no result to paste (only the basic command invite). Yeah, from the workflow directory. Is iTunes open when you're doing this? Link to comment
phyllisstein Posted May 12, 2013 Share Posted May 12, 2013 Try this, Open Alfred's preferences and go to the Workflows pane Right click on the Up Next workflow and then click "Show in Finder" Open Terminal in /Applications/Utilities In Terminal, type "cd " (note the space at the end) and then drag the little blue folder icon from the top on the finder window into the terminal window and hit enter Now in Terminal, type "ruby pair.rb " followed by a 4-digit number pin and hit enter Paste the results here I'll look into this right away! Hey there! This is utterly brilliant, and I'm excited to start using it! Unfortunately, I'm having some trouble: I can't get iTunes to react, even using the Terminal command, which just runs without any output. I tried disabling Norton's firewall and LittleSnitch, but I never even got notice from them that a service was starting on your port. If it helps, ruby -v turns up ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]; I recently updated it with MacPorts, which I worry might be the source of the problem. Link to comment
edc1591 Posted May 12, 2013 Author Share Posted May 12, 2013 For the people that are having trouble pairing, I have two questions: Is iTunes running when you try to pair? (it should be) Do you have sharing enabled in iTunes? Link to comment
phyllisstein Posted May 12, 2013 Share Posted May 12, 2013 For the people that are having trouble pairing, I have two questions: Is iTunes running when you try to pair? (it should be) Do you have sharing enabled in iTunes? Oh, how foolish of me! Sharing was disabled. It looks to be working beautifully now—thanks a billion! Link to comment
bencfd Posted May 12, 2013 Share Posted May 12, 2013 For the people that are having trouble pairing, I have two questions: Is iTunes running when you try to pair? (it should be) Do you have sharing enabled in iTunes? Yep, iTunes is open and sharing is enabled. Link to comment
suga Posted May 13, 2013 Share Posted May 13, 2013 I want you to respond to Japanese search Link to comment
brutze Posted May 17, 2013 Share Posted May 17, 2013 I really like that workflow, exactly what I was looking for! But searching for a song takes quite long and it's a bummer that it only looks through the song titles. So I was wondering: There is this workflow to search for a song in Alfred and play it right away. Search results are limited to 20, which allows for instant feedback. I'm not an expert, otherwise I would have tried it myself - but isn't it possible to merge that feature in the "Up next" workflow to improve searching? dfay 1 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