I haven't been able to search the list archives. Neither
<http://bumppo.net/search/macperl.html> nor the Sherlock plugin will
work for me.

So, still open to suggestions on my previous question.

Richard Cook wrote:
> 
> Hi there,
> 
> I set the creator/type of a file likeso:
> 
> my $of = "extract.u8";
> open OF, "> $of"
>     or die "cannot create `$of': $!";
> my @creator = qw(LING McPL TBB6 MOSS);
>                   #0   #1   #2   #3
> MacPerl::SetFileInfo($creator[0], "TEXT", $of);
> 
> and after perl writes the data to OF, I'd like perl to tell the creator
> app (in this case "LING") to open $of.  The creator app is not apple
> scriptable, though I guess this might not matter, if perl can tell the
> finder to tell the app. to open the file.
> 
> Does someone here have example code?
> 
> -Richard

Reply via email to