scripting for complete dummies

Rich rich at hq.vsaa.lv
Thu Oct 26 12:02:34 UTC 2006


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



More information about the Amarok mailing list