Running a Processing sketch which saves .txt files to a folder. Have a folder action attached that prints new files in this folder to a thermal receipt printer.
However, I had to update to Yosemite, and since then the print queue window opens up over the sketch and has to be closed manually before continuing with the sketch. When I print a document normally the printer proxy behaves and stays in the dock, and doesn't change focus from Processing.
I have no Applescript experience, but I think I need a script that I could include in the folder action, so these .txt files print automatically, without intervention while Processing is running.