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

Re: [MacPerl] Adding resource fork to file



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;

>Also, how do I open the Color Picker from a MacPerl script?

You could use AppleScript/Apple Events to open something that opens the
picker, but you cannot access it directly (AFAIK) without XS code.

--
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