Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two printers. When printing from Firefox, I would like the proper printer to be selected by default.

  • Zebra 5"x4" thermal label printer: default printer for websites only
  • Brother standard A4 (8.5"x11") laser printer: default printer for any other website

Is it possible to change my default printer when printing from a particular website in Firefox?

share|improve this question
The only thing I can think of is to script it, you can set the default printer through the registry: - and you can probably use AutoIt or something like python or perl to detect the url you are on and set default printer as necessary. I'll see if I can figure out a working method. – MaQleod Sep 7 '11 at 0:24
@MaQleod: Thanks for the feedback. I'm on a Mac, so the registry edits wont do the trick. – Pete Sep 7 '11 at 0:41
Unless there is an obscure Firefox extension, this is impossible. – surfasb Sep 7 '11 at 4:57
it is possible, just change the requirement of number of pages to another recognition: but this is a windows, solution not mac... – juFo Dec 11 '15 at 8:18
up vote 1 down vote accepted

On a Mac, you'll want to use Applescript, it can automate a LOT for you.

This will let you set the default printer as needed - you'll need to run that based off of what this tells you for what url firefox is currently on. You'll probably need some parsing to just get the domain.tld out of the url to determine where to print, but that should get you pointed in the right direction.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .