how about just using lp to print instead of some GUI scripting?
why didn’t I think of that obvious solution first? D’oh! However, I just wanted to print a PDF in landscape and lp didn’t automatically do “the right thing” — one has to use the option -o landscape as the man page reveals. In conclusion, I’ll continue using GUI scripting with Preview.app because it just does “the right thing” by default. Alternatively, another possibility would be several print folders, each using a different combination of parameters for lp (e.g., “normal”, “landscape”, “2 pages per sheet”, etc.).
You could also try using folder actions to initiate the printing although I’m not sure if they are invoked when the folder is accessed over the network.
I actually looked into this, but found it too complicated. As a programmer, I find AppleScript to be a strange language in general. How about you?