Re: applescript-users digest, Vol 3 #2492 - 18 msgs
Re: applescript-users digest, Vol 3 #2492 - 18 msgs
- Subject: Re: applescript-users digest, Vol 3 #2492 - 18 msgs
- From: Graff <email@hidden>
- Date: Thu, 04 Mar 2004 14:07:29 -0500
Instead of printing directly to the printer why not use the PDF
Workflow option of the Print dialog. It will allow you to print
directly to a script which will handle the output for you. Here's the
relevant web page that describes this:
<
http://www.apple.com/applescript/print/>
Here is a sample script to do this. Save it as a regular script and
place it (or an alias of it) in one of the locations mentioned on that
web page and follow the instructions that are given on that page.
------------
on open these_items
try
set this_file to item 1 of these_items
tell application "Finder"
set the parent_folder to (the container of this_file) as alias
end tell
tell application "Printer Setup Utility"
if status of current printer is idle then open this_file
end tell
tell application "Finder" to delete parent_folder
on error error_message number error_number
if the error_number is not -128 then
tell application (path to frontmost application as string)
display dialog error_message buttons {"OK"} default button 1
end tell
else
tell application "Finder" to delete parent_folder
end if
end try
end open
------------
-Ken
On Mar 4, 2004, at 11:10 AM, Rich Carroll wrote:
I am using CrackerJack to batch process these PDF files to include
crops and
plates names. CrackerJack is a plug in for Acrobat, and is not
scriptable.
The issue is really that my machine (dual 2ghz G5) is too fast. If I
use a
7600 power Mac, I don't have the problem, since it spools so much
slower.
This is why I was trying to slow down the print center on my G5.
Who would've thought that a machine could be too fast?
It sounds like I can't do what I wanted to do, so I'll have to stick
with
using the older machine, ugh.
Rich
Message: 18
Date: Wed, 03 Mar 2004 22:58:19 -0500
From: Graff <email@hidden>
Subject: Re: Print center delay
To: Rich Carroll <email@hidden>
Cc: email@hidden
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.
_______________________________________________
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.