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


Click here to return to the 'Restarting Stuck HP Communications' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Restarting Stuck HP Communications
Authored by: BMarsh on Apr 12, '05 09:08:46PM

not sure how many have had this problem, but sometimes my mothers HP LaserJet 3330 MFP will just die, sometimes this just requires doing a Force Quit on the HP Communications.app, then start it up again.

Other Times, the 3330 itself needs to be powered off, then back on, and then have this Force Quit and relaunch happen (or a restart of the computer as well)

I developed the following applescript for my mother who had trouble remembering the steps, or losing the written instructions to do this, now it is one click on the dock.

[code]
set thePID to 0

set thePID to do shell script "ps axww | egrep -i '/Library/Printers/hp/HP Communications' | egrep -iv 'egrep -i' | awk '{ print $1 }'"


if thePID > 0 then
do shell script "kill -9 " & thePID
end if

delay 5

try
tell application "HP Communications" to run
end try

tell application "Finder"
activate
end tell
[/code]

It is not pretty, I'm sure there are more efficient ways to do this, but given the amount of time I had, it was the best I could do.

In some cases the printer Queue also needs to be started again. (Pressing the Start Jobs button in the specific printer window)
(I'm looking into doing this with the applescript at some point, but ran out of time and a headache, so another day)



[ Reply to This | # ]