Hi Jud Craft,<br><br>1. <br>General Info: <a href="http://amarok.kde.org/wiki/Development/Scripting_HowTo_2.0">http://amarok.kde.org/wiki/Development/Scripting_HowTo_2.0</a><br>Amarok APIs: <a href="http://amarok.kde.org/wiki/Development/Script_API">http://amarok.kde.org/wiki/Development/Script_API</a><br>
Qt binding APIs: <a href="http://amarok.kde.org/qtscriptbindings/index.html">http://amarok.kde.org/qtscriptbindings/index.html</a><br>Scriptable Service: <a href="http://amarok.kde.org/wiki/Development/Scripted_Services_Tutorial_2.0">http://amarok.kde.org/wiki/Development/Scripted_Services_Tutorial_2.0</a><br>
<br>and you can download the scripts from <a href="http://kde-app.org">kde-app.org</a> and study them as examples.<br><br>2. No you can't, but you can use Qt libraries.<br><br>3. <a href="http://www.peterzl.net/en/?p=99">http://www.peterzl.net/en/?p=99</a><br>
<br>4. Amarok.Window.OSD and Amarok.Window.Statusbar are used for that: <a href="http://amarok.kde.org/wiki/Development/Script_API#Amarok.Window.OSD">http://amarok.kde.org/wiki/Development/Script_API#Amarok.Window.OSD</a><br>
the progress bar API is currently missing, they will be probably available in the future version though.<br><br>Hope these info helps. :)<br><br><div class="gmail_quote">On Fri, Dec 12, 2008 at 11:47 AM, Jud Craft <span dir="ltr"><<a href="mailto:craftjml@gmail.com">craftjml@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am interested in writing a script for Amarok.  I have never used<br>
Javascript before (which I believe is what QtScript is based on).  I<br>
am competent in Python and C#, and have done some C++, so I don't<br>
think this is an impossible task.<br>
<br>
The Amarok Wiki has the API reference, and Arstechnica's positive<br>
review of Amarok mentions that if I wish to craft a UI-based script<br>
extension, I can use Qt Designer in a process that involves loading<br>
the UI layout using XML; I have never used Qt myself, but I am willing<br>
to learn, and this brief description sounds understandable.<br>
<br>
I have a few general questions; this may not be the place, or they may<br>
be poor questions.  I apologize in advance if so.<br>
<br>
1.  Are there any other resources besides the API reference that would<br>
be of interest? (Besides picking up competency in Javascript of<br>
course).<br>
2.  Can I use other KDE base library functionality?  I would like<br>
being able to use the KUIserver in particular (isn't that the one that<br>
handles notifications and monitors processes?  I think that's the<br>
one).<br>
3.  Is there a way to design my script such that I can reuse GUI and<br>
code as a standalone tool as well as an Amarok script?  This sounds<br>
more tricky; I imagine it would involve calling functionality in a<br>
library from within QtScript, but I would imagine the GUI itself could<br>
be reusable, being XML.<br>
4.  How can scripts trigger in-Amarok notifications to the user?  Has<br>
this been completely superceded by KUIServer/KNotify?  Looking through<br>
the API in the Amarok wiki doesn't seem to mention support for the<br>
passive popups which were often used in Amarok 1.4, or the ability to<br>
trigger a progress bar on the status bar.<br>
_______________________________________________<br>
Amarok mailing list<br>
<a href="mailto:Amarok@kde.org">Amarok@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/amarok" target="_blank">https://mail.kde.org/mailman/listinfo/amarok</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Peter ZHOU<br>-------------------------------<br><a href="http://www.peterzl.net/">http://www.peterzl.net/</a><br>