QTScript – Javascript for KDE and Amarok 2

Posted by LD October 26th, 2008

With the newer updates to KDE and Amarok the dev teams have set the entire thing up to make some things easier. Plasma scripts and apps are developed in any scripting language one can ask for. You can even write your apps in C++ and make due rather well. I’m trying to decide if I want to try to learn C++ and go from there. I’m not entirely certain.

One thing I want is a script in Amarok that would transcode and prep videos for transfer to iPod and other media devices. However I’m still trying to get my mind around it all. Little help would be nice.

The biggest issue I see is the fact that it’s all javascript. I’m not certain how easy Java script is supposed to be as I’ve not been one to code often. I’m trying to figure it out, but it’s not easy.

Any suggestions or options please drop me a line and let me know.

  • Share/Bookmark

2 Responses

  1. Hi LD,

    thanks for considering to create a script for Amarok 2. We are very excited so see what script authors will be able to do with our new powerful scripting system.

    As for help with QtScript (JavaScript), here is a useful link to get you started:

    http://amarok.kde.org/wiki/Development/Scripting_HowTo_2.0

    On this page you will also find further links to JavaScript introductions. It’s not very hard to program it after all, you’ll see :)

    I also recommend to take a look at our existing example scripts that come bundled with Amarok 2. For instance this one:

    http://kollide.net:8060/browse/~raw,r=19019/Amarok/src/scripts/lyrics_lyricwiki/main.js


    Mark Kretschmann
    Amarok Developer
    http://www.kde.org – amarok.kde.org

  2. LD LD says:

    Went over what you linked too. From what I can tell it (and posted my understanding in a later post) it SHOULD be relatively simple if one knows what to pull in. It should also be helpful if it goes well that many of the needed calls are part of the script API as it relaes to tagging in file meta data.

    Correct me if I’m wrong at all in my understanding.

Trackback URL for this entry