• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Choose Desktop Printer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Choose Desktop Printer
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: GraphicConverter Create Icon Syntax
  • Next by Date: Re: Choose Desktop Printer
  • Previous by thread: Error -619 using XML Tools, but only in an applet
  • Next by thread: Re: Choose Desktop Printer
  • Index(es):
    • Date
    • Thread