I’ve noticed that lpadmin, lpotions, and any AppleScript solutions I’ve come across fail to work if your default printer is current set to “Last Printer Used.” As long as something other than that is initially selected, then the usual solutions work.
Has anyone else run across this in 10.5.2?
Additionally, I can’t seem to run this via osascript:
set myPrinter to "Some Printer"
tell application "Printer Setup Utility" to set current printer to printer myPrinter
I get the following error:
[code]file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O warning : failed to load external entity “file://localhost/System/Library/DTDs/sdef.dtd”[/code]
Any thoughts? Anyone have a possible solution for the automation of setting the default printer of 90-some-odd computers?