[Pythonmac-SIG] FInfo object - how to make invisible files?

Craig Hagerman craig@osa.att.ne.jp
Wed, 19 Apr 2000 23:48:27 +0900


Hi,

I have a couple related questions. In brief, I want to open some new files
in write mode and in one case have it be an invisible file and in another
be a BB Edit file (rather than the default text file). I thought it would
be a simple matter but it has me stumped.

I understand that I have to use the macfs module as well to set the flags
for invisible but I can't seem to get it right. I think that I have to
create a FInfo object and then use the
	finfo.Flags
method. From the Apple developer web site I seem to remember that 17
represents invisible files (?). BUT... what exactly IS an "FInfo" object. I
have been searching and searching to no avail. How do I set the flags of a
file to invisible?

Also; Is it possible to specify the file type/creator when I open a new
file? or do I have to open it then use=>
	macfs.SetCreatorType(creator,type)
to do this?

Thanks in advance,

Craig Hagerman