summaryrefslogtreecommitdiff
path: root/tools/scripts/UltraCP
blob: 7dc68851837764f21cbfcdc52a136890ff66f71f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
"""
Type: Nautilus Script
Title: UltraCP
Version: 1.0
Info: copie des fichiers ou répertoires sélectionnés avec UltraCopier.
      copy selected files and directories with  UltraCopier.
Author: © Copyright (C) 2013, Airelle - http://rlwpx.free.fr/WPFF/nautilus.htm
License: GNU General Public License, version 3 or later - http://www.gnu.org/licenses/gpl.html
Usage : copier ce fichier dans le répertoire des scripts Nautilus de votre dossier personnel
        (~/.gnome2/nautilus-scripts/) et vérifier que le script est exécutable (x).
        Ultracopier doit être installé (http://ultracopier.first-world.info/)
        copy this file to the directory of Nautilus-scripts of your home
        (~/.gnome2/nautilus-scripts/) and be sure that the script is executable (x).
        Ultracopier must be installed (http://ultracopier.first-world.info/)
"""

IFS='
'

vers=`zenity --file-selection --directory --title="Vers..." --filename="/home/media/" --text="Choisir le dossier de destination"`

for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS ;
do
 ultracopier cp "${file}" ${vers}
done

# EOF