Nuxeo/Blogs

Nuxeo Developers Blog/News from the Open Source ECM trenches

Nautilus + ps2pdf script

without comments

Recently i was producing many funkload’s bench results. Firefox lets
you easily create files in PostScript format by printing page to file. I
wanted easy way to convert produced ps files to pdf from Nautilus without
going to terminal. Thanks to Nautilus, it supports custom scripts(more info
here), that after
putting to ~./gnome2/nautilus-scripts directory, appear in popup
context menu.

#!/bin/bash
cd $NAUTILUS_SCRIPT_CURRENT_URI
for arg in $@
do
    ps2pdf $arg
done

After saving that in ps2pdf.sh and making script executable you can convert
one or multiple selected ps files to pdf by right clicking on selected file(s) ->
Scripts -> ps2pdf
Very nice :)

(Post originally written by Ruslan Spivak on the old Nuxeo blogs.)

November 20th, 2005 at 6:18 pm

Posted in Uncategorized