#!/bin/bash IFS=$'\n' for FILENAME in $CAJA_SCRIPT_SELECTED_FILE_PATHS; do if [ -d "$FILENAME" ]; then cmd="croc send \"$FILENAME\"" mate-terminal --title="Envoi du répertoire via croc (`basename $FILENAME`)" -x /bin/bash -l -c "$cmd" fi if [ -f "$FILENAME" ]; then cmd="croc send \"$FILENAME\"" mate-terminal --title="Envoi du fichier via croc (`basename $FILENAME`)" -x /bin/bash -l -c "$cmd" fi done