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
if status of current printer is not (idle) then
set status of current printer to idle
I do not think this would work.
"status" is read only.
May be this could be accomplished via CUPS, by going to CUPS with
Safari and trying to perform the operation there.
I have not tried this. If I'll do it later, I'll post the results here.
tell application currentPrinter
Peter J Baxter
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: