On Wednesday 28 June 2006 18:37, Randall R Schulz wrote:
On Wednesday 28 June 2006 09:18, Jonas Helgi Palsson wrote:
... dcop :-)
Yes. A component whose power I've scarcely tapped. I have a few scripts that use it, but too few. I've found learning about it not too easy, though the self-describing aspects are pretty helpful, to the extent that verbs are well chosen and descriptive of the actions they invoke.
I've not really used dcop for anything useful, but my head is full of plans to use it in diverse scripts.
use a small script (this is not really tested so YMMV)
#!/bin/bash if [ $(dcop | grep -c akregator) -gt 0 ] ; then if [ $(dcop akregator akregator_mainwindow hidden) == true ] ; then dcop akregator akregator_mainwindow setHidden false else dcop akregator akregator_mainwindow setHidden true fi else #this one you have to change to have the right params :-) akregator %i %m -caption "%c" fi
Thanks. I'll give that a try.
When you have tried afew times and have made it work, could you please post the final script? regards j -- Jonas Helgi Palsson "Microsoft is not the answer. Microsoft is the question. NO is the answer." -Erik Naggum