Saturday, November 24, 2007

Nautilus Scripts

An easy way to make a contribution to Open Source, is just giving more functionality to the existing tools and one of most easy is helping adding scripts or plugins to Nautilus, without necesity of change code absoluty nothing, just with scripts.

ie. a script that allows resizing images:
1 : Create script

#!/bin/bash
title="redimensionar_imagen"
scale="resize : <height>x<width>"

imgsize=
`gdialog --title "$title" --inputbox "$scale" 200 100 2>&1`

while [ $# -gt 0 ]; do
pic = $1
/usr/bin/convert -scale $imgsize "$pic" "$imgsize-$pic"
shift
done


2 : save this in ~/.gnome2/nautilus-scripts

3 : and ready, now it can use in nautilus


Download: pack with multiple scripts.

References : G-Script.

No comments: