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

[MacPerl] MacPerl::SetFileInfo Help



I apologize if this is a silly newbie kinda question.  I've been writing
Visual Basic and 4D for the last few months, and have lost my Perl chops,
but danged if I can't figure out why this won't work.

This creates the expected file, but doesn't set it's creator to BBEdit file.


require "StandardFile.pl";

$x = &StandardFile'GetNewFile("Select New File", "foo");
open (MYFILE,">$x")|| die "could not open $x";
print MYFILE "hello world.\nI'm a BBEDIT file.\n";
MacPerl::SetFileInfo ("R*ch" , "TEXT" , MYFILE);
close (MYFILE);

** Russell Aminzade - Computing As If People Matter - 802-351-4357
aminzade@sover.net**



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