File print from right-click context menu in Caja

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
alexanderb0w

File print from right-click context menu in Caja

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
alexanderb0w

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

Post 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.
Locked

Return to “Scripts & Bash”