>I have looked at my code, and think I may have found the problem. Does the command SET PRINTER TO NAME need the variable name in () after the command?
>If so, then that is my problem,
Yes, the variable name must in in parens.
E.g.
lcPrinterName = getprinter()
set printer to name (lcPrinterName)
If it's not broken, fix it until it is.
My Blog