[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BJ's right, BASIC program in FAQ can't retype $00



nathan@visi.com (Nathan Mates) wrote:
>In article <5ilm46$1ing@uni.library.ucla.edu>,
> <pubpc1@library.ucla.edu> wrote:
>>Nate, the FAQ needs to be revised.  The "Filetype Mismatch" error
>>that BASIC.System responds with is not due to resource forks at all.
>>It is due to BASIC.System's inability to deal with filetype $00.
>
>   Scott, you're wrong. I just tested this on my GS with System 6.0.1
>(ProDOS 8 2.0.3) by doing the following:
>
>1) Boot GS/OS to finder. 'Duplicate' /BOOT/Basic.System (chosen
>because I know it has no resource fork) to 'test.system'. Use Bill
>Tudor's "More Info" FExt to change filetype to $00.
>
>2) Launch Basic.System v1.5 from Finder. With 'cat', verify that
>'test.system' is listed with filetype $00. Then, "BLOAD test.system,
>a$2000,t$00" was executed. A quick memory dump in that area reveals
>that it has been loaded. "rename test.system,test2.system" also worked
>fine, no errors.
>
>3) Just to pull GS/OS out of the picture, reboot and 8-boot to ProDOS
>8, same Basic.System. I can still bload it, and rename it no problem.
>
>   You're the first to ever claim that Basic.System has any sort of
>problem with filetype $00. You claim to have attempted to retype a TXT
>file, but have neglected to remember that even TXT files can have
>resource forks attached to them, which has been the problem for ProDOS
>8 right from the beginning. Try again with a file known not to have
>a resource fork (which is why I picked a copy of Basic.System for my
>above test).


You are right.  As Randy surmised, I didn't know that a file with a
resource fork could still be TYPED by a ProDOS 8 utility.  Since the
utility typed the file, I thought the file didn't have a resource
fork.

Now I just have to figure out -- since the file originated from the
GS, GS/OS must have added the resource fork, but when?

-Scott G.