You are not logged in.
Pages: 1
Hey all. I'm trying to write a simple script that will start a media player (amarok), load a bunch of mp3s, start playing, skip to the next track (since amarok starts at 1 all the time and it's annoying), and hide it to the tray. I have successfully accomplished all but the skipping and the hiding to the tray.
For skipping, I know the command (dcop amarok player next), but I think it's trying to execute before amarok is capable of dealing with it. Is there a handy way to make the script wait or any better ways of dealing with this that someone could recommend?
For hiding to the tray... I simply don't know. Any thoughts?
Thanks.
Offline
You could try the sleep command for making the script wait. But perhaps someone knows a better solution?
Application of abstract techniques and utilities to solving a particular business problem is NOT a patentable idea. It is a fundamental concept of the IT industry.
Offline
Thanks for the tip. Possibly not the most elegant solution, but it works and it taught me a command.
So, any ideas on minimizing it to the tray?
Offline
Pages: 1