How to develop a Safari event listener

2008-09-29 Thread Bill Morgan
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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: How to develop a Safari event listener

2008-09-29 Thread Jim Turner
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 PROTECTED] 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 (Cocoa-dev@lists.apple.com)

 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:
 http://lists.apple.com/mailman/options/cocoa-dev/jturner.lists%40gmail.com

 This email sent to [EMAIL PROTECTED]

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]