[futurebasic] Re: combined .bas/.rsrc file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: Bowerbird@...
Date: Sat, 6 Dec 1997 12:47:30 -0500 (EST)
i said:
> as i understand from one of items on the "reasons" webpage,
> a futurebasic (zbas) source code (text) file
> will be able to have a resource fork.
> that would be great!

and rick said:
>   As it turns out 
>   (and this is something I didn't know 'till I tried it just now)
>   --you can _already_ do that!
>   All you need to do is make sure that 
>   the filename you reference in your RESOURCES statement 
>   is the same as your source (*.BAS) file name.  
>   Then just use ResEdit to 
>   stick all your required resources into the .BAS file's resource fork.

ah, but rick, you didn't test far enough, real-world wise.

i tried this as well, when the idea first came to me, and
when you edit the combined file using the fb editor,
it re-saves the edited file _without_ the resource fork.

(it would be simple enough to fix this, but for now, it doesn't work.)


>   You couldn't do this anyway unless ResEdit has invented some 
>   special "close document" Apple Event that it can respond to.

oh, yeah, i hadn't realized that.
the more i learn about apple events, the more limited they seem.
(i want a system where i can execute _any_ action in any program.)


>   And I doubt that it has, because it's generally considered 
>   bad manners for one app to try to close another's documents.

funny how there's always a 
totally understandable and reasonable course of action
(like this one)
that flies in the face of what's "general considered bad manners".

-bowerbird