Jump to content

Last.fm + Alfred = Alfred.fm


Recommended Posts

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
  • 1 month later...
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
  • 2 weeks later...
  • 1 year later...
  • 2 years later...
  • 3 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...