Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An AppleScript to quickly stop all print jobs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to quickly stop all print jobs
Authored by: Egrefen on Feb 16, '06 09:45:10AM

Call me naive but can't you simply pull the cable? It's faster than anything, and works every time. Except maybe if you have a wireless printer, or a network printer which you're not directly connected to.

Anywhooo for the vast majority of us using USB printers, nothing works better than a good ol' tug on the USB cable.



[ Reply to This | # ]
An AppleScript to quickly stop all print jobs
Authored by: vindu on Feb 16, '06 12:51:06PM

But does it cancel the jobs cleanly after you pull the cable? What happens when you plug the cable back in?

In general it's better to have a solution that doesn't involve breaking a physical connection between two hardware devices, because in those situations you are not guaranteed a clean break in software terms.



[ Reply to This | # ]
Use UNIX command from terminal
Authored by: asher on Feb 16, '06 03:16:21PM

lpstat -t is a display only command you can run anytime. Try it from terminal. Shows you all printers and printer jobs.
Then you can cancel all or a single job by
cancel PrinterName-JobNumber
where PrinterName and JobNumber come from the output of the lpstat command.
If your connection to the printer is fast or the printer has a large buffer you may find the printer continues to print from its buffer. So I just turn the printer off to clear the buffer.



[ Reply to This | # ]