Send to...

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
6.7
Description:

I made this simple script for easily send multiple files to a removable device or to any partition in the system.
Last changelog:

9 years ago

- Translated in English, German, Spanish, French, Polish, Bulgarian
- The Abort-Button in the Send-To script now works
- The script check now, the return value of the cp command and will then finish their work or pop-up a infobox, that something went wrong
- The script check now if destination is writable and, if not, it will print an info box
- Added a progress bar
- The script now allow to copy entire folders

igancuhz

11 years ago

#!/bin/bash
# ----------------------------------------
# Nautilus "Enviar a" Script
# ----------------------------------------
#
# Created by Mattia Galati (Adaron)
# First improvement by Christopher Bratusek (Chrispy)

devices=`ls -m /media/`
vv=${devices//cdrom?, /}
vd=${vv//cdrom, /}
options=${vd//, / FALSE /media/}
destination=`zenity --list --title "Enviar archivos a:" --text "Seleccione destino:" --radiolist --column " " --column "Dispositivos" FALSE /media/$options`

if [[ $destination == "" ]]; then
exit
fi

cp $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS $destination

if (( $? == 0 )); then
zenity --info --text="Los archivos se han copiado correctamente." --title "Correcto";
else zenity --info --text="Ha ocurrido un error." --title "Error";
fi

Report

nomentero

11 years ago

Here the Spanish Traslation "Enviar a":

#!/bin/bash
# ----------------------------------------
# Nautilus "Enviar a" Script
# ----------------------------------------
#
# Created by Mattia Galati (Adaron)
# first improvement and translation by Christopher Bratusek (Chrispy)
#

devices=`ls -m /media/`
vv=${devices//cdrom?, /}
vd=${vv//cdrom, /}
options=${vd//, / FALSE /media/}
destinazione=`zenity --list --title "Enviar archivos a:" --text "Seleccione destino" --radiolist --column " " --column "Device" FALSE /media/$options`

if [[ $destinazione == "" ]]; then
exit
fi

cp $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS $destinazione

if (( $? == 0 )); then
zenity --info --text="Archivos copiados correctamente" --title "Correcto";
else zenity --info --text="Algo fue mal" --title "Error";
fi

Report

plueschi84

11 years ago

If you have fedora 7 first "yum install zenity" otherwise it won't work

Report

max-232

11 years ago

Really good Job!
I was looking for exactly this!

Thanks

Report

9 years ago

- Translated in English, German, Spanish, French, Polish, Bulgarian
- The Abort-Button in the Send-To script now works
- The script check now, the return value of the cp command and will then finish their work or pop-up a infobox, that something went wrong
- The script check now if destination is writable and, if not, it will print an info box
- Added a progress bar
- The script now allow to copy entire folders

12345678910
1
product-maker I4C Feb 19 2013 3 bad
product-maker Count:85 Rating: 6.75
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
updated Jul 15 2009
added Oct 09 2007
downloads today
0
page views today 5
System Tags addon