Hi folks
I have written a test application which gets a list of the installed printers and drops them into a popup button, but I get this error during app start up:
Printer Setup Utility got an error: Connection is invalid. (-609)
I click OK.
The app opens.
Same error message again.
Print Setup Utility opens and the list populates.
Print Setup Utility closes.
All good!
Why do I get this error or how could I stop it. I assume it is because there is a time lag between Print Setup Utility opening and the request for data.
Is there a neater way to get this info?
tell application "Printer Setup Utility"
open
set myList to name of printers
quit
end tell
Thanks.
S