File print from right-click context menu in Caja

Forum rules
Before you post please read this

File print from right-click context menu in Caja

Postby alexanderb0w on Mon Mar 18, 2013 2:48 am

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-file-right-click-context-menu-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
User avatar
alexanderb0w
Level 1
Level 1
 
Posts: 8
Joined: Mon Mar 18, 2013 2:11 am

Linux Mint is funded by ads and donations.
 

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

Postby alexanderb0w on Thu Mar 28, 2013 6:43 am

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.
User avatar
alexanderb0w
Level 1
Level 1
 
Posts: 8
Joined: Mon Mar 18, 2013 2:11 am


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 1 guest