nautilus-script move/copy file
Hi, I'd like to have a nautilus scritp that moves a file to my home directory. I found the script below that should copy it. It doesn't work. why not?
Code:
#!/bin/sh
# copyhome: copies the selected file(s) to home directory
# (if able)
for arg
do
if [ -f ~/"$arg" ]; then
MSG="File: '$arg' already exists in home directory. Overwrite?"
if
gdialog --title "Overwrite?" --defaultno --yesno "$MSG" 200 100
then
cp "$arg" ~/"$arg"
fi
else
cp "$arg" ~/"$arg"
fi
done
We seek to resolve frustration and abide in a comfortable, relaxed mind. We call that 'happiness'. And still I believe in that next upgrade...
--dell xps m1330 t9300 2.5ghz 4gb 320Gb Nvidia 8400m gs--
--lenovo w520 2720QM 8Gb Nvidia Quadro 1000
Bookmarks