I am trying to write a script to delete all “Generic PostScript Printers” from the printer list. I’m using a script because I need to ARD it to 1000 computers.
Here it is:
tell application "Printer Setup Utility"
activate
set i to 1
set thecount to the count of printers
repeat until i = thecount
if the kind of printer i = "Generic PostScript Printer" then
delete printer i
end if
set i to i + 1
end repeat
end tell
If I read the event log, it loops by all the printers and it says it deleted the GPSP, but they are still on the list! Any ideas?
Using Panther.
Model: iMac/eMac/Towers
Browser: Safari 312
Operating System: Mac OS X (10.4)
That would simply remove it from the CUPS file, and then it would be instantly updated again because of all the computers with printer sharing. We just need to remove it with the files from the Printer list, which is per-user…