• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to develop a Safari event listener
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to develop a Safari event listener


  • Subject: Re: How to develop a Safari event listener
  • From: "Jim Turner" <email@hidden>
  • Date: Mon, 29 Sep 2008 11:10:21 -0500

Hi Bill

Unless things have changed recently, what you're looking for is called
"Not Officially Supported by Safari".  As you discovered, there is no
interface that will allow a plugin to load arbitrarily unless it's
going to provide some sort of media handler for content on the page.

That being said, the WebKit plugin API *can* do what you want, but
it's a bit ugly at best and utilizes a loophole in how plugins can
externally define their MIME types to get the plugin to load.  If you
search Google for Safari and "browser with plugins", you'll find some
guidance.

Finally, if you're completely open to all options, things like SIMBL
or Unsanity's Application Enhancer may be an option... but input
managers can get people's feathers ruffled.  Plus, there could be a
large discussion on whether input managers will be around much longer
at all (which I won't start here).  In short, use them at your own
risk.

--
Jim
http://nukethemfromorbit.com



On Sun, Sep 28, 2008 at 8:43 PM, Bill Morgan <email@hidden> wrote:
> Hi to all,
>
>
> I am trying to develop a small tool, it can be an appliction/bundle/plug-in
> ... The goal is, when Safari opens certain web page, like www.apple.com, the
> tool will be launched automatically, and it can get the page's url.  I know
> for firefox, people call this kind of tool as add-on, not sure what it's
> exactly called for Safari.
>
>
> I tried to do it with Web Kit plug-in. But as I learned, Web Kit plug-in
> only works when the web page has certain embed tag, like 'mov', that was
> defined in the MIME type that the plug-in registered for. But in my case, I
> want the tool to work for any web page Safari opened.
>
>
> Any one has any suggestion on how to do this?
>
>
> thank you all for your kind support!
>
>
> Bill
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to develop a Safari event listener (From: "Bill Morgan" <email@hidden>)

  • Prev by Date: Re: Mouse events with higher priority then repeating NSTimer
  • Next by Date: Re: How to get Safari Bookmarks in the code
  • Previous by thread: How to develop a Safari event listener
  • Next by thread: Mouse events with higher priority then repeating NSTimer
  • Index(es):
    • Date
    • Thread