#!/bin/sh #-------------------------------------------------------------------- TMP_FILE=`tempfile 2> /dev/null` || TMP_FILE="/tmp/nautilus-script.$$" IFS=" " trap "rm -f $TMP_FILE" EXIT #-------------------------------------------------------------------- for file in $NAUTILUS_SCRIPT_SELECTED_URIS; do tmp=$(sed 's/file:\/\/\(.*\)/\1/' <<<"$file"); realfile=$(sed 's/%20/\\ /g' <<<"$tmp"); echo $realfile >/tmp/nautilus-test; #rhythmbox-client --enqueue $realfile; banshee --enqueue $realfile done