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

Re: [MacPerl] Adding resource fork to file



At 09.48 -0400 1998.08.14, Kevin Reid wrote:
>> At 22.03 -0400 1998.08.12, Kevin Reid wrote:
>> >How do I add a resource fork to a file that doesn't have one? I saw
>> >Mac::Resources::FSpCreateResFile, but I don't understand its parameters.
>>
>> This should do it:
>>
>>   FSpCreateResFile($file, MacPerl::GetFileInfo($file), 1) or die $^E;
>
>What does the third parameter mean?

Sorry I did not reply earlier.  That goes for any other replies I make to
old posts over the next day or so.  :-)

The third parameter is actually the fourth parameter.  GetFileInfo()
returns two values, and the fourth is SCRIPTTAG, which is something which
is better not to worry about, but it needs a value, so 1 suffices.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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