For some reason, if I manually drag the .ps files to the desktop printer it works great. If I use the script to select a printer, then move the .ps file to it, I get:
Finder got an error: You cannot move filename.ps to the desktop printer LaserJet 5si, because it is not a print file .
It is a postscript printer and will handle the files all day long if I hand feed them. Does anyone have similar experiences with the Desktop Printers?
set pathToFile to (choose file with prompt "Please select the a file to print.") as string
set pathToDesktop to path to desktop as string
tell application "Desktop Printer Manager"
set thePrinterList to name of desktop printers
end tell
set chosenPrinter to (choose from list thePrinterList with prompt ("Select a printer")) as string
set pathToPrinter to pathToDesktop & chosenPrinter
tell application "Finder"
move alias pathToFile to alias pathToPrinter
end tell