Desktop printing in OS9
Desktop printing in OS9
- Subject: Desktop printing in OS9
- From: Amir Bozorgzadeh <email@hidden>
- Date: Fri, 17 Jan 2003 15:06:56 -0600
I am setting up a script to set up desktop printers in 9.2.2 and have
gotten it to set up the printer with the correct PPD. I have a two-fold
question:
First, when i check on these printers through the desktop printer
utility the queue and IP address do not appear to be there. Can anyone
tell me if my script is incorrect or something else I need to add to
have it included. The reason for this is that the printers are going
through a queue on a Windows box and if I do not set up the IP and
queues correctly it comes back with an error message. In other words,
my script doesn't work accept for appearance.
Second, I need to have duplexing turned on by default when these
printers are set up (can I do this with applescript or resedit?)
Below is my script and I have not done a lot with desktop printer
manager and hacked this together with limited resources off the web.
Any help with this would be greatly appreciated.
try
tell application "Desktop Printer Manager"
set the IP_address to "128.255.104.165"
set the DTP_name to "WEEG-BANNER"
set the queue_name to "M-WEEG16-COVER"
set the PPD_name to "HP LaserJet 4000 Series"
set the ppd_file to "Macintosh HD:System Folder:Extensions:Printer
Descriptions:HP LaserJet 4000 Series" as alias
set the printer_driver to "Laserwriter 8"
try
set my_printer to make new desktop printer at desktop with
properties {name:DTP_name, queue name:queue_name, is default:true, PPD
file:the ppd_file, shows manual feed alert:false,
address:{class:address specification, ID:the IP_address, protocol:IP},
driver name:the printer_driver}
end try
set the PPD file of the default printer to ppd_file
end tell
end try
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.