On Jun 15, 6:29 pm, Peter Hosey <[email protected]> wrote: > On Jun 15, 2010, at 15:24:15, briandunnington wrote: > > > specifically, there are no events exposed by the Safari extension API to > > let extensions hook into the download started/complete events (or any other > > interesting events, for that matter). > > Even if there were, I don't know how to send a Growl notification from a > JavaScript script. Fluid provides an API for it (i.e., it has Growl support > and provides that support to scripts). Safari, I'm fairly sure, doesn't.
true. you could get fancy (hacky?) and use the networking protocol to send the notifications though. the current UDP protocol would be trickier since Flash does not support UDP sockets, but using GNTP, you could use a hidden Flash movie to make the TCP connection to the localhost (that is how the current Firefox GNTP extension works). even better is using WebSockets, which will allow TCP(-like) connections right from Javascript. I have a proof-of-concept Javascript library that uses Websockets to send GNTP requests to a local TCP/WebSocket server (hosted in a dev build of GfW) and it works pretty good. this is off topic for this thread, but i think that maybe adding the recommendation for a WebSocket-compatible interface might be good for the GNTP spec. we added a recommendation that compliant listeners support the Flash crossdomain.xml request, but WebSockets are hopefully going to be more standardized and open, and only the initial HTTP-like request is any different - the rest of the communication is just plain-old TCP bytes sent over the wire, so the extra work is minimal. -- You received this message because you are subscribed to the Google Groups "Growl Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/growldiscuss?hl=en.
