Getting list of completed print jobs

Hi again!

I need some help again.

How do i get a list of all completed print jobs like in the browser using:
http://127.0.0.1:631/jobs?which_jobs=completed

I need this information in applescript.

I need the name of the printer, the name of the job, the time when the job was completed and the information whether the job was completed or cancelled - and maybe - if possible - the time the job nedded to be completed (end time - start time).

I made some experiments with «lpstat -W completed -o» but there i don’t get the job name just the ID and not the information whether completed or cancelled.

Any idea?

Thanx Pille :?
[/quote]

Why not just use that CUPS link via curl and then parse the HTML results?

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Thank you!

I’ve done this and it works fine!