Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari Helper Applications and Plugins




Generally browsers will post-process files on the Mac by downloading the file and then asking the OS to open it. The browser may also in some situations, based on the MIME type, assign a type and/or creator code to the file to be sure that it opens in the correct application. Files without type/creator codes open based on their extension.


Details on how files and applications are associated can be found here:

<http://developer.apple.com/documentation/Carbon/Conceptual/ LaunchServicesConcepts/index.html>

I can't speak for other web browsers, but I think that Safari has a predefined list of applications it will launch to handle downloads. This includes the application that mounts disk images, the one that unzips zip archives, Preview, an application for viewing images and PDFs, etc. These are all considered 'safe' applications.

We make a browser called OmniWeb and we have a similar approach. We ship with a default list of 'safe' applications, and the user can add additional applications to that list. When we complete a download we ask the OS what application would launch should we ask for the file to be opened and if the response is in our 'safe' list then we go ahead and post-process the file.

Since not all browsers can necessarily be configured to automatically post-process downloads with your application, your best route is probably a plug-in (excluding custom URL schemes). All Mac browsers (AFAIK) support the Netscape plug-in API (1), and Safari will soon support the new extensions to the older API (2).

Hope that helps,


Scott Maier The Omni Group


(1) <http://web.archive.org/web/20030530194153/devedge.netscape.com/ library/manuals/2002/plugin/1.0/plugin.pdf>
(2) <http://www.mozilla.org/projects/plugins/npruntime.html>



On Apr 7, 2005, at 5:45 PM, Nick Nassar wrote:

Hi,

I'm the lead developer for Blog Torrent, a simplified tracker and client
for BitTorrent. An important part of the user experience is being able
to have seamless uploads and downloads with BitTorrent after the initial
install. On Windows/Linux we currently do this by serving files
containing the information the client needs to start the upload/ download
with a mime-type of either application/x-bittorent or
application/x-blogtorrent. We'd like to avoid new URL schemes because
they're not backwards compatible with other BitTorrent clients.


It seems that the only way to make files of certain mimetypes
automatically open with the correct application is to create a browser
plugin that handles that mimetype and have that plugin open the file. Is
that correct? If not, how do I do this and where is it documented?


If that is correct, where can I find the latest documentation on
creating Safari plugins? Can I use a simple Mozilla plugin with Safari?
The most recent document I can find is dated May 2001.
http://developer.apple.com/technotes/tn/tn2020.html


Nick


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Safari Helper Applications and Plugins (From: Nick Nassar <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.