Desktop Printer with Target Application
Desktop Printer with Target Application
- Subject: Desktop Printer with Target Application
- From: Alan Gall <email@hidden>
- Date: Fri, 05 Jan 2001 12:08:05 +0000
The Desktop Printer Manager dictionary shows the address class "Custom
Printer Address" supports a target application which can be used to
post-process spooled files.
I've used the manager to successfully create a desktop printer with a custom
address, setting the target application to a test app (a little applescript
applet).
tell application "Desktop Printer Manager"
try
make new desktop printer at desktop with properties ,
{name:"Test Custom Printer", is default:false, PPD file:generic,
driver name:"LaserWriter 8", address:{class:custom Printer address ,
, protocol:custom, target application:file "System Disk:test
spooler"}}
end try
End tell
I can print from any application to this printer and a spool file appears in
its queue. After this, however, it reports an error of -5751, presumably as
it tries to post-process this spooled file with the target app (which
doesn't appear to launch).
Has anyone managed to make this work? Can it be made to work? If so, it
would be a great way to let users workflow postscript jobs - all they have
to do is "print" the job to a particular printer.
Any/all help greatly appreciated!
Alan Gall