walt@w-gregg.juneau.ak.us
January 2003

Address.cmd, a Rexx script to address #10 envelopes in certain HP Deskjets

The 'address' command is a public domain Rexx batch file that lets you address number 10 envelopes in HP Deskjets similar to the 840c and 930c, without the need to start any word processor or database. This is a text-only command and is best run in full screen. There is no editing. All that the 'address' command does is prompt you for your return address, optional subject and mailing notation lines, and the addressee. Then it shows you what you have entered and give you a chance to print or exit. If you choose print, it adds the necessary HP printer control codes, reminds you of how you should insert the envelope, and then prints the envelope.

The orientation of the envelope as specified by the 'address' prompt may be 180 degrees reversed from the picture shown on the Deskjet and in its manual. Some HP Windows drivers place the printer into a 'PCL3GUI' mode when printing in landscape mode. This reverses the orientation from normal and text-only landscape modes and has the advantage that you can print right to the left edge and top of objects like envelopes. However, 'PCL3GUI' apparently can only print graphics, so we have to use the traditional orientation instead. If you insert the envelope the way HP pictures them, the addresses will probably print upside down.

The 'address' command will accept a text file as an argument. If you type your return address into a file such as RetAddr.txt, you can type 'address RetAddr.txt' to start the program with the return address already filled in. From the Desktop, you can drag and drop a return address onto the program to accomplish the same thing.

Fully graphical envelope addressers are available, for example on Hobbes you can find envlgo.zip and pmenv.zip. However, they didn't quite meet my needs, as I wanted to be able to enter subject lines and mailing notations.

No installation is required. If you're reading this you've already unzipped address.zip, and all you need to do is type 'address' to try it. If you would like an icon on the Desktop for this program, type 'AddrIcon' and one will appear.

I'm a bit doubful that many others will find this useful, but you never know. If you do use it, I'd appreciate it if you'd send note to walt@w-gregg.juneau.ak.us mentioning the printer model.


W. Gregg, Address.cmd (Rexx/os2 Jan. 2003): Address #10 envelopes in certain HP Deskjets