Recent Posts
None | 0 sec ago
None | 0 sec ago
None | 5 sec ago
Bash | 9 sec ago
None | 27 sec ago
None | 45 sec ago
C++ | 1 min ago
Z80 Assembler | 1 min ago
None | 1 min ago
Java | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By brandizzi on the 23rd of Nov 2009 02:26:38 AM
Download |
Raw |
Embed |
Report
#!/bin/sh
title=Conversor
for file in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do
size=$(zenity --entry --title="$title" --text='Size:')
if [ -z "$size" ]
then
return
fi
converted=$(zenity --entry --title="$title" --text='Output file:')
if [ -z "$converted" ]
then
return
fi
convert -resize "$size" "$file" "$converted"
if [ "$?" == "0" ]
then
zenity --info --title="$title" --text="$file converted to $converted!"
else
zenity --error --title="$title" --text="The $file conversion to $converted failed!"
fi
done
Submit a correction or amendment below.
Make A New Post