#!/bin/sh # Prints the amaroK collection statistics for Konversation, by Thomas Decoster. PORT=$1; SERVER=$2; TARGET=$3; COLLECTION_TRACKS=$(dcop amarok collection totalTracks); COLLECTION_ALBUMS=$(dcop amarok collection totalAlbums); COLLECTION_ARTISTS=$(dcop amarok collection totalArtists); COLLECTION_GENRES=$(dcop amarok collection totalGenres); echo "${COLLECTION_TRACKS} tracks on ${COLLECTION_ALBUMS} albums by ${COLLECTION_ARTISTS} artists over ${COLLECTION_GENRES} genres ! [amaroK collection statistics]"| while read line; do dcop $PORT default say $SERVER "$TARGET" "$line"; done