Page 1 of 1

File print from right-click context menu in Caja

Posted: Mon Mar 18, 2013 2:48 am
by alexanderb0w
Using Mint 14 32-bit w/ Mate

Interested in getting a simple script running to print files directly with out opening them. The template is thanks to:
http://www.frenssen.be/content/printing ... u-nautilus
I have previously used it successfully in Ubuntu/Nautilus.

Code: Select all

printer=Office-HP

echo "$CAJA_SCRIPT_SELECTED_FILE_PATHS" | while read file
    do
        lpr -P "$printer" "$file"
done
exit 0
Looks like this. What's missing?
The script file is executable, and lpr works fine when typed in the terminal

Thanks all

Re: File print from right-click context menu in Caja

Posted: Thu Mar 28, 2013 6:43 am
by alexanderb0w
If my previous posted question was unintelligent please say so, & explain why. Can any readers provide suggestions for how-to's on getting any scripts to work from a right-click context menu? Im willing to do the research for an answer and would be more than grateful for a place to start.