Added BeyondCompare scripts, Open Terminal Here and Resize script to resize a directory of images to 250x250 using mogrify

This commit is contained in:
Josh Sherman 2010-08-26 11:04:26 -04:00
commit 13f1e41141
5 changed files with 16 additions and 0 deletions

3
bc/compare Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
quoted=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
bcompare $quoted

4
bc/compare_to_selected Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
arg2=$(cat $HOME/.beyondcompare/nautilus)
arg1=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
bcompare $arg1 $arg2

3
bc/select_for_compare Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
quoted=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
echo "$quoted" > $HOME/.beyondcompare/nautilus

3
open_terminal_here Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cd $NAUTILUS_SCRIPT_CURRENT_URI
gnome-terminal

3
resize_250x250 Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cd $NAUTILUS_SCRIPT_CURRENT_URI
mogrify -resize 250x250 *.*