On MacOS, you can drop a PDF directly onto the window of a Printer's print queue, and it will be sent to print immediately (with the printer's default settings).
I'm looking for a way to do a similar thing with a specified folder. E.g. Any PDF or PostScript file dropped onto that folder (or saved there through any other method) will be sent straight to the printer.
The obvious thing is to use Folder Actions and an AppleScript, but I'm wondering if there's a neater solution that I've overlooked? Essentially, I'm looking for a filepath that works as a print queue.
Best Answer
There is a simpler solution in 4 steps and a small shell script:
make your own spool directory:
write the following shell script within your usual local bin directory let's say
/local/bin
copy the following inside
my_spooler
:make your
my_spooler
executable:start it:
it should start without a full path if
/local/bin
is within yourPATH
if it isn't, then start it this way:The ending
&
means start it in background so as not to block your session waiting until the end of time.How to use it
To use it you simply have to move any text or PS or PDF file within your own defined spool directory how you prefer. Either with the
Finder
or with basic command line: