scripting for complete dummies

Seb Ruiz me at sebruiz.net
Thu Oct 26 12:27:17 UTC 2006


The playlist is automatically saved by the undo / redo stack. You'll
want to use the xml files in ~/.kde/share/apps/amarok/undo instead of
doing all the work again.

On 26/10/06, Rich <rich at hq.vsaa.lv> wrote:
> hi. finally i got annoyed having to manually save playlist all the time
> (or lose it when something crashes), so i decided to create "the most
> simple script ever".
>
> but even that could be improved :)
>
> 1. currently i am simply saving playlist upon track change. it would
> also be nice to do so upon playlist change, but i could not find such a
> notification in
> http://amarok.kde.org/wiki/Script-Writing_HowTo
>
> is there a notification for a playlist change ? if there is, couldn't
> using it lead to problems when savecurrentplaylist is called several
> times simultaneously ?
> or maybe script would wait on playlist save until dcop call returns, so
> the only problem would be possibility to miss last change if the
> playlist is large enough ?
>
> 2. it seems that commands called do not resolve ~ (tilde).
> how could i resolve it (actually i just want to get amarok's config
> directory this time) ?
>
> thanks.
> --
>   Rich
> _______________________________________________
> Amarok mailing list
> Amarok at kde.org
> https://mail.kde.org/mailman/listinfo/amarok
>



-- 
http://www.sebruiz.net/



More information about the Amarok mailing list