Safari + Mime Types revisited
Safari + Mime Types revisited
- Subject: Safari + Mime Types revisited
- From: The Spaminator <email@hidden>
- Date: Fri, 03 Nov 2006 10:30:28 -0500
I have seen a few posts about how to get Safari (or any other browser
for that matter) to handle HTTP responses of any arbitrary content-type,
but the solution still eludes me.
I have a software package that I would like to be set up to handle HTTP
responses of type "application/x-my-type" from within a browser. I do
NOT want to create a browser plugin unless absolutely necessary.
Basically we have a form and when the data is POSTed, the response needs
to be handled by our software as part of the process.
What I have seen up to now is to set up the software package to be the
handler for this type (file extension of .mytype, for arguments sake).
While it successfully worked at making my executable the default handler
for the file type (opening files with .mytype extensions invoked our
software) it did not make it the default handler in Safari
(application/x-my-type, just gets saved to a file, kind of like
application/octet-stream).
The process I used was to add a line entry in the properties tab of the
XCode target info screen (see link:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/05_02_bs_targets/chapter_30_section_6.html).
So I have an application bundle created with XCode that has the right
plist entries for the bundle. Then I use Vise X to package it, and it
seems to have some plist entries too, but nothing relating to my
mimetype. Installing this package correctly installs the file
association but not the mime-type association.
What am I missing?
Also, I see a lot of references to "Safari's plist" but I am somewhat
new to Macs, and I don't know where every process keeps their plist,
somewhere in /library/preferences? The one file that I did find had no
mime entries at all, but people say that the mime associations are
contained in a system plist, where would I find this plist? and
comments like "its in APPX's list" are not helpful, a specific directory
and filename would be appreciated.
Thanks for any help.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden