Just post some of your usefull scripts in here for all to enjoy. These are nautilus scripts for gnome users they go in your home under .gnome2/nautilus-scripts # This script either opens a gnome terminal in the current directory, # or in the...
Topic Options
#151719 - 12/04/0411:23 PMScripting fun thread
egorgry
enthusiast
Registered: 08/30/03
Posts: 315
Loc: New Jersey
Just post some of your usefull scripts in here for all to enjoy. These are nautilus scripts for gnome users they go in your home under .gnome2/nautilus-scripts
Quote:
# This script either opens a gnome terminal in the current directory, # or in the selected directory
base=`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d'/' -f3-` if [ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then dir=$base else while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done dir="$base/$1" fi
#scale images to 800x600 and put a 6x6 pixle black border around image #needs image magick #need to make file size selectable using zenity for i in *.jpg *.JPG *.png *.PNG *.jpeg *.JPEG do cp $i /home/web/ done cd /home/web for i in *.jpg *.JPG *.png *.PNG *.jpeg *.JPEG do mogrify -scale 800x600 -border 6x6 -bordercolor black $i done zenity --info --text="Your files have been scaled to 800x600 and moved to /home/web"