Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'CUPS-PDF - A free virtual PDF printer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
CUPS-PDF - A free virtual PDF printer
Authored by: NovaScotian on Aug 28, '07 05:38:40PM
I use CUPS-PDF, and have this little script in my Scripts menu to move through my printers:
tell application "Printer Setup Utility"
  activate
  repeat
    set myPrinters to every printer
    set C to count myPrinters
    set DefaultPrinter to current printer
    repeat with k from 1 to C
      if item k of myPrinters is DefaultPrinter then
        set current printer to item ((k mod C) + 1) of myPrinters
        exit repeat
      end if
    end repeat
    if button returned of (display dialog (name of current printer) as text default button 1 buttons {"OK"} with title "Press Enter when Printer is Correct" giving up after 1.5) is "OK" then exit repeat
  end repeat
  quit
end tell
Edit: Placed code in fixed-width box.
Edited on Apr 23, '10 05:20:43AM by robg


[ Reply to This | # ]