At 17:44 -0600 1/4/02, Bill Stephenson wrote: >I did get as far as a print error when I tried to run something like this >from the terminal: > >Print -Mtxt /test.txt
I got an error too when I tried this: [bh2065:~] adam% Print test.txt Converting TEXT file to postscript... [ 1 pages * 1 copy ] left in /private/tmp/501/Temporary Items/test.txt.ps ERROR: Unable to print. The PostScript file was indeed there, and it looked okay to me. I don't know why it wouldn't print that way. However, the man page for Print says that it just calls enscript(1) to ps-ify text files. So you can call it manually: [bh2065:~] adam% enscript -p test.ps test.txt [ 1 pages * 1 copy ] left in test.ps [bh2065:~] adam% Print test.ps This seems to work fine for me. No need for AppleScript. I'm printing to a laser printer that understands PostScript, though, so I don't know what will happen with a raster printer. Hopefully the printing engine will RIP the PostScript appropriately. The enscript(1) program has a ton of options (see the man page), so hopefully you will be able to output the text the way you like it. adam --
