On 14/02/2006, at 9:48 AM, Joseph J. Strout wrote:
At 9:42 AM +1100 2/14/06, Jeff Ayling wrote:
If I'm using an httpsocket to download a file - what is the best
way to be sure that the file will be downloaded with the correct
creator,type, icon etc?
For Classic MacOS, you'd want to talk to Internet Config (a third-
party extension that then got adopted by Apple, and is part of the
toolbox) via Declares.
For OS X, in theory, you don't have to worry about it -- the file
should already have an extension, and we are intended to just cross
our fingers and hope the extension is right, in which case things
will work out just hunky-dory.
My files are being downloaded with either bbedit or text edit icons -
they have the correct .mp3, .mp4 or .jpg extensions.
But if I add the following to the downloadcomplete event of the
socket then the correct icons appear:
file.MacType="mpg4"
file.MacCreator="TVOD"
It's just that there are many different file types and I didn't want
to have to add each one manually to every downloadcomplete event
Thanks for your comments.
-Jeff
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>