Currently, when double clicking an item in the collection pane, Amarok (tries to) add it to the playlist. It would be helpful if this action could be disabled and scripts could handle this action in their own way. For example, I want to display a list of SoundCloud users at level 0. It does not make sense for Amarok to try to add a user to the playlist. Instead, I want this user to be used as a search term when double clicked. One way to implement this could be to have Amarok call the populate function for the script with level -1 when level 0 items are double clicked or Enter is pressed when a level 0 item is selected. Perhaps Amarok would only do this for level 0 items without a playableUrl set but with callbackData set (see also: Bug #342093). Reproducible: Always
Well, that was changed a while ago and already triggered quite some discussion on the developer ML, please search the archives, and I doubt it should be handled or changed by scripts. Instead of writing a script, did you consider writing an actualy Service for SoundCloud instead? Would make much more sense.