In my last post about the Applesoft version of Hamurabi, I noted the spacing problem and the tedious fix of retyping each of the lines that had issues.
There is a way to edit lines using escape codes, but I always found that harder than just retyping the whole line.
I remember there was a way to convert an Applesoft program to a text file. Once you have a text file, you can edit it using a word processor. I couldn’t remember how to do it, so I Googled it (convert applesoft to text). A little ways down in the results were a couple of entries “Applesoft to Text Convert”. So I checked the first entry at macgui.com which was a series of 4 usenet postings. The first reply was along the lines of what I was looking for. I tried it out and it produced a text file.
0 D$ = CHR$ (4): INPUT “File Name?”;A$: PRINT D$”OPEN”A$:
PRINT D$”WRITE”A$: LIST 1 – : PRINT D$”CLOSE”: END
You load up your program and type in the code above at line zero and run it. Enter a filename and away it goes. When it is done, just load the text file into your word processor and make your changes Then save them as a text file. I tried this first with AppleWorks and after editing could find no easy way to save as a text file. OK, now to plan B. I loaded up AppleWriter II PRODos and edited the file again and saved it as a text file H2.
Once I had it saved, I exited AppleWriter II and used EXEC H2 to load the edited file. I ran the edited version of hamurabi to check it and then saved Hamurabi. It worked like a charm. I’ve posted the corrected version.

Leave a Reply