I think that MacPerl::GetFileInfo should work.
MacPerl::GetFileInfo(FILE)
In scalar context, returns the file type. In array context, returns (creator,type). Examples:
MacPerl::GetFileInfo(yin);
Returns "TEXT" or ("MPS ", "TEXT").
- From Macperl. You may want to look at this MacPerl Primer as well.
good luck. | [reply] |
Under the Mac Classic operating system (OS 9 and below) "ownership" doesn't mean anything. Mac Classic is NOT a multi-user operating system, so it isn't important for the system to keep track of which user owns which files. Because it isn't important, the system doesn't bother, hence, no Ownership. (There is a "Multi-user" setup in OS 9, but that determines "ownership" by location, that is, where the file is stored determines who it belongs to... but there is no file property that describes ownership like in UNIX.)
Of course, this is completely different in Mac OS X. OS X is UNIX, and so each file has UNIX file permissions and ownership. You'd find the ownership of Mac OS X files using Perl just like you would on any other UNIX box.
Gary Blackburn
Trained Killer | [reply] |