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

Re: [MacPerl] MacPerl files creator code



At 14.43 -0400 1998.07.30, Vicki Brown wrote:
>But even talking output files (not scripts), forcing one creator type seems
>unflexible.  So I need to ask, if it matters to you, why not just use
>MacPerl::SetFileInfo to get exactly what you want every time?

The status quo is just as unflexible; it is 'MPS ' or McPL or R*ch every
time.  Creating a preference would make it more flexible, not less.  You
are arguing only that it does not matter to you; fine, that is well and
good.  But to people who would almost never open a created file with
MacPerl or MPW (I am one of them), it makes little sense to have its
creator be McPL or 'MPS '.  A preference item is simply the easiest way for
people to adjust the behavior.

As to using MacPerl::SetFileInfo() each time, that is just a huge waste of
time.  MacPerl creates dozens of files for me every day, and I want all of
them with an R*ch creator.  I see no reason why it makes sense to call a
function when there is already a resource that can globally change it.  And
I see no reason why that resource should not be read from the Preferences
file.

Actually, I think the best place might be in an Environment variable.  Have
an environment variable that is called EDITOR that is initially set with
the IC application mapping.  The EDITOR setting would be used to get the
creator type for new files.  My thoughts.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])