On Tuesday, February 4, 2003, at 09:58 PM, Beth Chaplin wrote:

The problem: When Perl creates the text file, it does not get assigned the
proper 'file type'. Instead of being recognizable by the Mac system as a
text file, it has the file type '????', and most Mac applications do not
recognize it.
It sounds like the apps you're using are older versions of Mac apps that run in the "Classic" environment. Native OS X apps - that is, Cocoa and Carbon apps - should be able to recognize a text file from its .txt extension.

Is there any way in perl (or UNIX) to change the file type of
a newly created file without having to do it manually through the Mac GUI?
Like Chris said before, you can use the GetFileInfo() and SetFileInfo() functions found in Mac::Carbon, which is available through CPAN.

sherm--

C programmers never die - they're just cast into void.

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm


Reply via email to