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

Re: [MacPerl] beginner's q...



>I'm rather new to perl. My problem is my email program saves files as MS Word
>documents, and they're far more useful as SimpleText documents. How would I go
>about a quick and dirty perl program to cange the file types?

 #!perl
$file= PATH:TO:THE:FILE:
 MacPerl::SetFileInfo('TYPE', 'TEXT', $file);

This is quick and clean, but you may want to look into how to read from a
folder so you don't have to keep making new scripts for each file you want
to zap :).

Where it says "TYPE", put in the creator code of the app you want to open
the textfile with, which for SmpleText is "ttext" (case is important I
believe).


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org