Re: [MacPerl-Porters] default type/creator

[email protected] (Axel Rose)
Newsgroups perl.macperl.porters
Message-ID <p04330101b8045832fa7d@[172.16.172.241]>
I'd go for a Mac specific FTP downloader which uses InternetConfig
and assigns proper type/creator signatures.

The issue I would like to see changed is the default of TEXT/MPS .
Ideal is a default setting in MacPerl. But as nobody is going to
extend the application itself a rather easy choice would be to
just save as "BINA/????".

That way if you double click such a file Finder will ask the user
what to do. If the file is TEXT users might get very confused
of very long lines, error messages from SimpleText or cryptic
characters when a text editor opens the download. The programmer
is more or less forced to think about setting type/creator.

a rough sketch
  package Mac::FTP;

  @ISA = qw (Net::FTP );
  use Mac::InternetConfig;
  use Mac::Conversions;

  map if exists $InternetConfig{ SuffixMap };
  demacbin if /\.bin$/;
  debinhex if /\.hqx$/;

You can still use Net::FTP and a patch isn't necessary.

Just an idea ...
Axel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.