Take the 2-minute tour ×

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 UPS.com 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: support.microsoft.com/kb/102966 - 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
add comment

1 Answer

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
add comment

Your Answer


