Enhorn Posted March 4, 2014 Share Posted March 4, 2014 As far as I can see, this workflow works as intended with Spotify as well. By just adding com.spotify.client to the list of player identifiers, all workflow actions works with Spotify. def player_running? %w{com.apple.itunes com.swinsian.swinsian com.spotify.client}.each do |player| return player if %x{osascript -e 'get running of application id "#{player}"'}.chomp == 'true' end end Link to comment
shadylane Posted May 1, 2014 Share Posted May 1, 2014 Hi Enhorn, I would love to get this working with Spotify as well - but I cannot find the line you mentioned anywhere in the workflow folder. What I have (in alfredfm_helper.rb) is this: def itunes_running? %x{osascript -e 'get running of application id "com.apple.itunes"'}.chomp == 'true' end I suppose the direct-download-version of the workflow (on the first page) doesn't have the swinsian changes yet. Could you maybe share your version of the workflow (with the changes applied)? @Filipe, or maybe you could update the direct download, that would be awesome Thanks and cheers, Anna Link to comment
fbarros Posted May 12, 2014 Author Share Posted May 12, 2014 I will try to update it when I have time. I'll update it on Packal and will post here Link to comment
shadylane Posted May 13, 2014 Share Posted May 13, 2014 I will try to update it when I have time. I'll update it on Packal and will post here Awesome, thank you Link to comment
fbarros Posted May 13, 2014 Author Share Posted May 13, 2014 Here's the link for the new release: https://github.com/filipebarros/alfredfm/releases/tag/v1.2.3 Mind that now it's more robust since instead of verifying only if the player is running, it also expects it to be playing a song: you can have iTunes and Spotify open, but if Spotify is playing and iTunes is not, the workflow will use Spotify instead of iTunes. Enhorn 1 Link to comment
yee Posted August 24, 2015 Share Posted August 24, 2015 Can you add support for Apple Music, please? 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