Choose Desktop Printer
Choose Desktop Printer
- Subject: Choose Desktop Printer
- From: Bart Visser <email@hidden>
- Date: Thu, 26 Jul 2001 08:10:29 +0200
Scripters,
I'm writing a script that makes it posible for a user to select a
desktopprinter from a list. But when I run the script I get an error that
say's something like: Desktop Printer Manager Error, no user interaction
allod. (In dutch so I don't know the exact words). Is there an other way to
do this or to turn user-interaction on?
tell application "Desktopprinter-manager"
set DefaultPrinterRef to the default printer
set MyCurrentPrinter to the name of DefaultPrinterRef
set myPrinters to {}
repeat with i from 1 to the count of every desktop printer
set myPrinters to myPrinters & (the name of desktop printer i) as
list
end repeat
set newPrinter to (choose from list myPrinters)
end tell