Re: Print center delay
Re: Print center delay
- Subject: Re: Print center delay
- From: Graff <email@hidden>
- Date: Wed, 03 Mar 2004 22:58:19 -0500
Status is read only, meaning that you can't change it - you can only
see what the printer is doing.
Why not just create a script to print the PDFs, you could do something
like this:
------------
on open theFiles
try
tell application "Printer Setup Utility"
if (count of theFiles) is greater than 1 then
repeat with aFile in theFiles
repeat while status of current printer is not idle
delay 5
end repeat
open aFile
-- uncomment delay line if needed
-- delay 2
end repeat
else
if status of current printer is idle then open theFiles
end if
end tell
end try
end open
------------
Save this script as an application and leave the stay open checkbox
unchecked. Then just drag the items you want to print onto the
application you created and they should only print when the printer
status is idle. You might want to uncomment the small delay statement
in the outer repeat loop because there is often lag between when a job
is created and when the printer status changes. That way you won't get
a bunch of jobs filling up the queue quickly and jamming it.
-Ken
On Mar 3, 2004, at 2:39 PM, Rich Carroll wrote:
Hello all,
I'm having an issue where I need to print several hundred PDF's. The
problem
I'm running into is that I end up overloading the printer itself. I was
trying to write a script that will toggle the printer back and forth
from
stopped to printing to send the files in a slower fashion. Every time
I set
the status, I get an error "Print Center got an error:
NSInternalScriptError"
Any ideas?
Repeat 100 times
tell application "Printer Center"
tell current printer
set status to printing
delay 5
set status to stopped
end tell
end tell
End repeat
--
Richard McCormick-Carroll
Application Specialist
Capps Digital Development Group
email@hidden
email@hidden
312.220.1679 @ Desk
312.520.1679 @ Cell
www.cappsdigital.com
_______________________________________________
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.