Yes,
as Arnauld said, I'm speaking of any downloaded file.
How to assign macCreator and macType to a downloaded file does NOT come into my
question.
As does NOT come into the question using ResEdit, since the 'postprocessing'
job should be something done automatically as soon as a file has been
downloaded (one cannot say to a user: use ResEdit to fix the icon of the file
my app downloaded for you).
Question is/was: is it still necessary to assign macCreator and macType under
OS 10.xxx ?
If the answer is yes, then, as pointed out in my original post, how can one
know on the fly what should be the macCreator/macType of any downloaded file?
In mac OS 9 a user, in the Internet control panel, could set MOSS as macCreator
for html files and GNOK for picture files etc; and we could call the Internet
Conf file to get these values and apply them to a downloaded file.
Nowadays the internet conf. file can be still accessed via declares, but since
I dont know how to modify it (since the Internet control panel has disappeared)
I dont know how reliable this call is.
Hence my last question (in the original post): should one forget about
assigning macCreator/macType to downloaded files? Is the Finder doing the job
for us?
Thanks,
(special thanks to Arnauld who answered for me. In these days I could not post
any answer because my IPS was having one of its monthly hangover).
>Arnaud Nicolet <[EMAIL PROTECTED]> said:
>
>I think Carlo speaks about any downloaded file, for example, if you
>download an .avi file.
>In Mac OS 9, the MacType and MacCreator were set using the MIME type
>once the download finishes, so that the .avi file has an icon and
>opens using, say, QuickTime (MacCreator="TVOD" and MacType=... well,
>avi mac type).
>
>Le 20 avr. 07 ? 18:54 Soir, jis a ?crit:
>
> > How about
> >
> > dim f as folderItem = Desktopfolder
> > f = f.child("myWebPage")
> > if f <> nil and f.Exists then
> > dim b as TextOutputStream = f.createTextFile
> > b.write myPage
> > b.Close
> > f.mactype = "HTML"
> > f.macCreator = "sfri" // Safari
> >
> > Johan Simons
--
Carlo
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>