Nautilus + ps2pdf script


Sun 20 November 2005 By nuxeo

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.)


Category: Product & Development