Applesoft BASIC: Moving a Listing to a Macintosh and Back

I would like to use a Macintosh word processor to edit Applesoft BASIC files from the Apple II environment. Is there a translator to take "tokenized" Applesoft BASIC files and have them appear on the Macintosh? The tokens (PRINT, DISPLAY...) don't seem to get translated when files are moved to the Macintosh. The original version of Passport (Apple File Exchange) had that capability.
We don't know of an AFE Translator for Applesoft BASIC files to Macintosh text files. You can get around this limitation by "printing" the Applesoft program files to a disk file before the AFE conversion. After editing on the Macintosh, transfer the files back to the Apple II. Then, EXEC each file to make it an Applesoft file. To do this, add the following code to the existing Applesoft program:

1 D$ = CHR$(4)
2 PRINT D$; "OPEN PGM.LIST"
3 PRINT D$; "LIST"
4 GOTO 32766

add the existing Applesoft program here

32766 PRINT D$; "CLOSE PGM.LIST"

The entire Applesoft program will be saved in a text filed called "PGM.LIST" and can be converted to a Macintosh format for editing.

After editing is complete, transfer the file back to Apple II text format using the file name "EDITED.FILE". Use the EXEC command to turn the text listing into an Applesoft program in memory.

] EXEC EDITED.FILE

Be sure to SAVE the program to disk or the EXEC step will have to be repeated each time the user wants to run the program.
Published Date: Feb 18, 2012