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

Re: [MacPerl] Creating a Resource Fork in a Text File Created with MacPerl



At 11.28 11/5/97, Philippe de Rochambeau wrote:
>How do you create a resource fork in a text file which you have just created
>with the Perl 'open' command?
>
>I am currently writing a program that creates HTML files on the fly. I would
>like to create resource forks in those files so that they appear as BBEdit
>files. Changing the files' Creator does not make them appear as BBedit files
>because they lack resource forks (when I open them with ResEdit, ResEdit tells
>me that the files don't have a resource fork).
>
>Any help on this matter would be appreciated.

Well, I am about to look at some of that myself, but you could check out Mac::Resources.  Any info I find I will pass along.

Regardless, changing the type and creator does make them BBEdit files; a resource fork is not necessary.  In fact, a utility that comes with BBEdit can go through your hard drive and change files to BBEdit's type and creator, with an option to delete the resource fork altogether.

--
Chris Nandor               pudge@pobox.com           http://pudge.net/
%PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10  1FF7 7F13 8180 B6B6'])
#==                    MacPerl: Power and Ease                     ==#
#==    Publishing Date: Early 1998. http://www.ptf.com/macperl/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch