using applescript to change printers in osx

Anybody have any information on how to change printers in OSX. For instance, I would like an application to print one document on one printer and another on a different printer.