remove print jobs
remove print jobs
- Subject: remove print jobs
- From: "Mike Johnson" <email@hidden>
- Date: Wed, 11 Dec 2002 09:07:30 -0600
- Thread-topic: remove print jobs
Hello all
I have tried to find a solution for my applescript problem but I am not able to finish the last step. I was hoping that someone out on this list would be able to point me in the right direction.
The script is to remove print jobs in all printers. I have found a way to find all the printers and display a list of the files in that printer, but am not able to remove a white list (named printer log) of printed jobs.
I need to do a white list because I have found 3 files in the folder that I donbt want to delete. The 3 file are "Configuration", "Icon", and on the default printer "Desktop Printer Spooler". I hope to have a list of the jobs that are queued to the printers excluding the 3 mentioned above and then to remove them from the queues. The script in included below.
====================================================================
tell application "Desktop Printer Manager"
set count_printers to count each desktop printer
set indicator_name to "no"
repeat with counter from 1 to count_printers
set current_printer to name of desktop printer counter
tell application "Finder"
if list folder item current_printer contains "printer log" then
set indicator_name to "yes"
delete item "printer log" of folder current_printer
list folder item current_printer
end if
get indicator_name
end tell
end repeat
end tell
----------------------------------------------------------
Mike D Johnson
Bethel College and Seminary
St. Paul MN
651-635-8639
---------------------------------------------------------- -
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.