• 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
Re: Printer Setup Utility, starting a stopped printer.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printer Setup Utility, starting a stopped printer.


  • Subject: Re: Printer Setup Utility, starting a stopped printer.
  • From: Peter Baxter <email@hidden>
  • Date: Sat, 24 Mar 2007 23:05:28 +1100

Hi Thomas,

Your solution could look something like this:
The address could be done in a neater way, but I'm getting tired, and I'm sure someone else can work out a general way of getting the address of the printer.

tell application "Printer Setup Utility"
set currentPrinter to "Macintosh HD:Users:peterba:Library:Printers:" & name of current printer & ".app"
get status of current printer
try
if status of current printer is not (idle) then
my activatePrinter
set status of current printer to idle
end if
end try
end tell


on activatePrinter()
tell application currentPrinter
activate
end tell
end activatePrinter

Yours sincerely,
Peter J Baxter
mail:  email@hidden

The aim and final end of all music should be none other than the glory of God and the refreshment of the soul.
-- Johann Sebastian Bach



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Printer Setup Utility, starting a stopped printer.
      • From: KOENIG Yvan <email@hidden>
    • Re: Printer Setup Utility, starting a stopped printer.
      • From: deivy petrescu <email@hidden>
References: 
 >Printer Setup Utility, starting a stopped printer. (From: Thomas Myers <email@hidden>)

  • Prev by Date: Re: Two quick questions
  • Next by Date: Re: Printer Setup Utility, starting a stopped printer.
  • Previous by thread: Printer Setup Utility, starting a stopped printer.
  • Next by thread: Re: Printer Setup Utility, starting a stopped printer.
  • Index(es):
    • Date
    • Thread