Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printer Setup Utility, starting a stopped printer.



I have a printer that sometimes stops. Since this is on a headless machine, I don't see it and users are upset..  

Using Applescript I can see that the printer is stopped, but I can't figure out how to start it again without using "System Events".

Does anyone know how to do that.

I'm thinking it would be something like: 
set thePrinter's status description to idle


Thanks

Below is the result of my query of my "stopped" printer.  
tell application "Printer Setup Utility"
get current printer
--> printer "XeroxPhaser6300DN-192.168.44.103"
get properties of printer "XeroxPhaser6300DN-192.168.44.103"
--> {
kind:"Xerox Phaser 6300DN", 
status description:"Stopped", 
name:"XeroxPhaser6300DN-192.168.44.103", 
class:printer, 
status:stopped
}
set status of printer "XeroxPhaser6300DN-192.168.44.103" to idle
end tell

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.