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

Re: [MacPerl] MacPerl::SetFileInfo Help (fwd)



According to Chris Nandor:
> 
> >$x = &StandardFile'GetNewFile("Select New File", "foo");
> >open (MYFILE,">$x")|| die "could not open $x";
> 
> >MacPerl::SetFileInfo ("R*ch" , "TEXT" , MYFILE);
>                                          ^^^^^^
> I think the third arg should be a path to a file (i.e., $x), not a filehandle.

Don't you also have to close the file first?  The file
isn't even officially created until after it's been
closed.  So wouldn't SetFileInfo always bomb or at least
have problems if the file hasn't really been created yet?

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