Menu

12 April 2010

[nautilus-script] Right Click - Print File

here is a very small script -

save to following file with name as "Print File"
and make it executable -
chmod +x "Print File"
and move into
~/.gnome2/nautilus-scripts
directory


+++++++++++++++++++++++++
#!/bin/bash

## Ny Narendra Sisodiya, for SchoolOS
## narendra.sisodiya@gmail.com
## If you modify it, Please let me know.
## released under GPLv3

IFS=$'\n'
for FILENAME in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
do

##TODO to add file checking extensions
   lp "$FILENAME"
done

exit 0
+++++++++++++++++++++

You can now print files using right click on a file

Can sombody test and modify so that before giving print command we need to check that file must be .odp, .txt odt, .pdf format. Also, we can show some menu using zenity

Posted via email from LUG@IITD Community Blog

No comments: