Hi Uwe,
how about just using
lp
to print instead of some GUI scripting? 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.
Greetings,
Marc