Jump to content

Soundcloud.com Website Control


Recommended Posts

Copied from the projects github.com page: https://github.com/benjaminpaap/SoundcloudControl

 

SoundcloudControl for Alfred2

This is an Alfred2 workflow to control an opened soundcloud.com tab in Google Chrome.

 

Installation

Just download the SoundcloudControl.alfredworkflow to your local harddrive and double click on it to open Alfred2 and import the workflow.

 

Usage

When installed correctly SoundcloudControl offers some commands to control an opened soundcloud.com tab in Google Chrome:

 

arrow_forward.png sc play

Plays the first song in the currently opened soundcloud tab. This could be your stream, a playlist or anything else.

 

hash.png sc pause

Stops the playback of the current song

 

fast_forward.png sc next

Plays the next song in the currently opened soundcloud tab

 

rewind.png sc prev

Plays the previous song in the currently opened soundcloud tab

 

heart.png sc like

Likes the current song

 

Contributions

If you would like to use this workflow for another browser it would be great if you could contribute your changes to this repository as a pull request. I will review and merge it as fast as possible. Contributions are highly welcome.

 

This is my first workflow I shared. Any hints on improving this are highly appreciated.

Edited by BenjaminPaap
Link to post

Great Workflow! 

 

In the first step autocomplete would be nice.

So i could just type in "sc n" and press enter to skip to the next song.

 

Something like that: 

IC22TNx.jpg

 

 

Some more ideas: 

  • just show the pause and play button when it is needed (if possible)
    • "sc" + press enter would pause or play soundcloud
  • show the title of the song 
  • change the symbol to specific icons: play, pause, next, prev, love

 

d1hClrm.jpg

 

That would be awesome! :)

 

 

EDIT:

I just found this: https://www.johneday.com/617/generate-feedback-in-alfred-2-workflows

Maybe it could help you. I have nearly no conception of apple script. 

Edited by td.
Link to post

Hello,

nice! That was fast and it works good. Sometimes it takes a few seconds to load, but that is ok. 

 

 

Here are my icon suggestions. It's a combination of the icons from the soundcloud page and from icon-fonts. 

Bhs76VE.png

 

Download files here: 

https://www.dropbox.com/s/tsaqkclq1i7t80h/soundcloud-icons.zip

 

 

I noticed a few things:

 

1. When you type "sc " (sc + blank) there are all six options. 

But when you only type "sc" without the blank, "like" is missing. 

 

2. It would make sense to remove the hyphen at play too. 

Like "Title"

Pause "Title"

Play - "Title"

 

3. I get following error message, when i use the "open" command:

Google Chrome got an error: Can’t make or move that element into that container.

Error number-10024
 
4. And when Chrome is closed and i type in "sc " an emtpy Chrome window is opened. 
Edited by td.
Link to post

Like in the previous comment: when I tried to make the workflow open a soundcloud tab (no soundcloud tab was already opened) I got the error "Google Chrome got an error: Can't make or move that element into that container" "Error number -10024".

 

Using Google Chrome 34. 

 

HTH. 

Edited by politicus
Link to post
  • 6 months later...
  • 2 weeks later...
  • 2 weeks later...
  • 2 months 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...