Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Applications in Safari and other browsers

 
   Macintosh computer (Home) -> General Discussion RSS
Next:  Retired? Unemployed? Laid-Off, or Insufficient In..  
Author Message
Robert Peirce1

External


Since: Dec 10, 2003
Posts: 973



(Msg. 1) Posted: Wed Feb 06, 2008 1:58 pm
Post subject: Applications in Safari and other browsers
Archived from groups: comp>sys>mac>apps (more info?)

I just added Bwana.app. If I type "man:" into the URL line in Safari or
Firefox, both know that they have to open Bwana to process the request.
How do they know that?

When I installed Bwana.app, I just dragged it to where I wanted it, and
that wasn't Applications. I didn't start it or do anything special, but
when I entered the request, Safari knew what program to run and how to
find it.

Seems like magic to me, but it I am sure it is just clever programming.

--
Robert B. Peirce, Venetia, PA 724-941-6883
bob AT peirce-family.com [Mac]
rbp AT cooksonpeirce.com [Office]

 >> Stay informed about: Applications in Safari and other browsers 
Back to top
Login to vote
Lewis

External


Since: Jan 19, 2008
Posts: 637



(Msg. 2) Posted: Wed Feb 06, 2008 5:46 pm
Post subject: Re: Applications in Safari and other browsers [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: Applications in Safari and other browsers 
Back to top
Login to vote
Sander Tekelenburg

External


Since: Nov 07, 2003
Posts: 741



(Msg. 3) Posted: Wed Feb 06, 2008 8:09 pm
Post subject: Re: Applications in Safari and other browsers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <bob-168343.12074806022008 DeleteThis @news.verizon.net>,
Robert Peirce <bob DeleteThis @peirce-family.com.invalid> wrote:

> I just added Bwana.app. If I type "man:" into the URL line in Safari or
> Firefox, both know that they have to open Bwana to process the request.
> How do they know that?

Launch Services: <http://developer.apple.com/technotes/tn/tn2017.html>.

Basically Mac OS X allows applications to 'tell the OS' that they can
handle a certain protocol. The moment you have the Finder show the
application, this info is registered by the OS (so even before the app
is launched, which played a role in this security issue a while ago:
<http://www.euronet.nl/~tekelenb/playground/security/URLschemes/>).

If the app is the only one (on that particular mac) claiming to handle
that protocol, it is registered as the default protocol helper. If there
are already other apps registered for that protocol, I'm not sure
exactly what logic is applied.

> When I installed Bwana.app, I just dragged it to where I wanted it, and
> that wasn't Applications. I didn't start it or do anything special, but
> when I entered the request, Safari knew what program to run and how to
> find it.

Actually, Safari/Firefox don't know what to do with that bwana: URL, so
they simply hand the URL on to the OS, which knows that Bwana claims to
be able to handle that, so passed it on to Bwana.

Nothing to do with Bwana or Safari or Firefox. Just Mac OS X.

> Seems like magic to me, but it I am sure it is just clever programming.

Yep :)

--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>

Mac user: "Macs only have 40 viruses, tops!"
PC user: "SEE! Not even the virus writers support Macs!"
 >> Stay informed about: Applications in Safari and other browsers 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> General Discussion All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]