http://www.perlmonks.org?node_id=726839


in reply to Create FireFox search plugin for arbitrary web site

This is great.

I wonder if there is some way to automate the output file, instead of having to type the path to the filename explicitly. I believe you can get away with a hardcoded path in Windows, but is it different for Linux?

  • Comment on Re: Create FireFox search plugin for arbitrary web site

Replies are listed 'Best First'.
Re^2: Create FireFox search plugin for arbitrary web site
by ccn (Vicar) on Nov 30, 2008 at 00:28 UTC

    Yes, there is. The best way is to make a personal wrapper for the script:

    linux:

    #!/bin/sh perl mksp.pl $1 $2 > ~/.mozilla/firefox/YOURPROFILE/searchplugins/$1.x +ml

    windows:

    REM windows batch file perl mksp.pl %1 %2 > PATH\TO\YOUR\PROFILE\searchplugins\%1.xml