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

Re: [MacPerl] MacPerl files creatore code



Brian Matthews wrote:

>Vicki Brown writes:
>|Or... why do your scripts
>|have McPL as their creator anyway? (mine are all R*ch 'cause I create them
>|with BBEdit in the first place).
>
>That's fine for scripts, but files I create *from a script* all have
>McPl (or whatever I've changed it to) as the creator. And yes, there are
>a vast array of options for changing the creator later, but why not have
>it how I want it in the first place?
>

Here's what I do within my script just before closing a typical text file
to make it "belong" to the text editor Alpha.

&MacPerl'SetFileInfo("ALFA","TEXT",$logfile); # make it an Alpha file

Or for Encapsulated PostScript that I wish to open with Tailor,

&MacPerl'SetFileInfo("Tail","EPSF",$outfile); # make output a Tailor file

All you need to know is the four-character creator and type codes to use.

Bob Pyle, Cambridge, MA, USA



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