Desktop Print Manager
tell app "Desktop Printer Manager" (* Find out which installed drivers can work with desktop printers; a list of these drivers is stored in the drivers variable, if your computer has any supported drivers *) set drivers to supported drivers end tell
The following dictionary commands and classes are based on the Desktop Printer Manager Version 1.0. The DPM has been scriptable since Mac OS 8.5 (in fact, it was introduced with that OS version).
sends DPM a run Apple event to open it (this is
not usually necessary since a
targeting DPM will implicitly launch the application if
it’s not already open).
This quits the
DPM app. The DPM quits automatically after it is finished processing
your script, unless its
quit delay property is set
never. See the
section elsewhere in this chapter.
You can make a new desktop printer with this command and give it some properties:
A required labeled parameter that always takes the form of:
make new desktop printer ...
make new file
or some other object. See the
class description for a review of this object’s
This is a labeled parameter that lets you decide where to create the desktop printer icon. If you do not include this optional parameter then the desktop printer (DTP) is created on the desktop. An example is:
make new desktop printer at (alias "macintosh hd:desktop folder:printers:") ...