Snailkeeper (Admin) wrote:
Eh, that's really odd, since both the Wiki and the Ruby script I linked to mention or use it. (Did you check out the Ruby script? I can't make heads or tails of it.)
I did look at the Ruby script, and even downloaded and tried to run it. However, I have to install the korundum module, or whatever it's called, which I apparently need to build from sources. Debian doesn't have a package for that module. I can't learn a new language right now.

Snailkeeper (Admin) wrote:
Yeah, I can get that, too. I use the "QString playingString()" property something like
Code:
variable = `juk Player playingString()`
to get the current information, formatted like this: "Artist - Song Title". But I don't know how to use any of the dcop information that starts with "void", like "void play()" or, the one I really care about, "void player::trackChanged()".
In most cases where you see something like "void play()", you can just use the function name for the operation to perform. This: "dcop juk Player play" would work.

I'll work on this some more when my head isn't hurting.
Snailkeeper (Admin) wrote:
Ok, stupid question. Two stupid questions, actually.

What do you mean by the dcop program? And just making sure, but you have KDE 3.5, right? Because the "void Player::trackChanged()" thing was implemented in 3.5, according to the documentation in the wiki I linked earlier.
Yes, I am running the latest KDE 3.5.5 or whatever the latest actually is.
The dcop program is a command line interface to the whole DCOP mechanism.

If you do just the "dcop" command alone, it will show you the things you can access using the DCOP mechanism. Then you can use "dcop juk" to see what parts of juk you can control via DCOP, and just drill down from there until you get "dcop juk Player" and finally "dcop juk Player play" to start juk playing. It's really quite nice program to know how to use from the command line.

I can do:
Code:
dalew@intrepid:~$ tracktitle=`dcop juk Player trackProperty Title`
dalew@intrepid:~$ echo $tracktitle
Take a Chance on Me
which gets me the track title of the song currently playing into the shell variable tracktitle.

I can then process the nformation anyway I might need to. The tildes are significant in the above commands.
BTW, the only stupid question is the one you DO NOT ask..
8-Dale