Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more
| Jason Miller |
519.872.0797 // developIT // Jason Miller Design Developer of amoebaOS, Shutterborg, Delitweet & more |
Maybe I'm doing something silly but your webapp only shows two icons
(for for Google Apps and one for Gmail) with a mouseover effect and
that's it.... That's in the downloaded webpage which looks exactly
like your webpage link.
I did find a webapp.js that is supposed to do a badge and I placed it
in Resources\webapp.js in my Gmail Prism app but it doesn't seem to
work either. Is this the correct location?
| Jason Miller 519.872.0797 // developIT // Jason Miller Design Developer of amoebaOS, Shutterborg, Delitweet & more |
hey jason.
i left a comment last night on your PrismBundler blog post.
we should bootstrap and try and revive the concept (i authored the bookmarklet).
i also want to again explore way to distribute a prism app without a user needed to first install prism itself.
a self-contained app (at least for mac).
sull
On Thu, Sep 10, 2009 at 1:12 PM, Jason Miller <ja...@developit.ca> wrote:
| Jason Miller 519.872.0797 // developIT // Jason Miller Design Developer of amoebaOS, Shutterborg, Delitweet & more |
http://prismspectrum.com/bookmarklet
this was an experiment in October 2007.
it's been dormant.
i have renewed interest in using Prism and am not fond of Adobe Air and Fluid is mac-only.
cheers,
sull
On Thu, Sep 10, 2009 at 1:50 PM, Jason Miller <ja...@developit.ca> wrote:
That would be awesome - I have been working on the self-contained format for Prism Mac applications, and my progress is available in the Gmail.app executable. I am not able to test on other computers, though, so I'm not sure how far I have gotten. It's basically the webrunner framework inside a .app with the application.ini paths modified to match the install directory.
Where can I find the bookmarklet? I'll check the comments today and respond there.
- Jason
Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more
On Thu Sep 10 2009 13:22:10 GMT-0400 (EST), Michael Sullivan wrote:
hey jason.
i left a comment last night on your PrismBundler blog post.
we should bootstrap and try and revive the concept (i authored the bookmarklet).
i also want to again explore way to distribute a prism app without a user needed to first install prism itself.
a self-contained app (at least for mac).
sull
On Thu, Sep 10, 2009 at 1:12 PM, Jason Miller <ja...@developit.ca> wrote:
| Jason Miller |
519.872.0797 // developIT // Jason Miller Design Developer of amoebaOS, Shutterborg, Delitweet & more |
| Jason Miller 519.872.0797 // developIT // Jason Miller Design Developer of amoebaOS, Shutterborg, Delitweet & more |
Thanks Jason for both the updated code as well as the attached file.
I was having problems getting it from your site - my ISP's problem not
your's. It's been a LOOONG time since I messed with JS so I'm glad
you helped me out there.
As a side point though. Why does Prism make this so difficult?
Fluid.app out of the box supports badge functionality out of the box
without me having to do anything. In addition it support userstyle
type scripts - why doesn't Prism? I've tried to hack Greasemonkey
into Prism but then the GM scripts don't work. Hopefully Mozilla is
giving Prism the attention I believe it deserves.
Thanks again.
Joseph
On Sep 10, 8:20pm, "Jason Miller" <ja...@developit.ca> wrote:
> Joseph,
>
> Here is the Gmail dock badge and notification script I mentioned previously, isolated and using your format:
>
> var newMailCount = 0;
> function load() {
> var timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
> timer.initWithCallback({ notify: function(timer) { checkNewMail(); } }, 5000, Ci.nsITimer.TYPE_REPEATING_PRECISE);}
>
> function checkNewMail() {
> var doc = window.top.document.getElementById("canvas_frame").contentWindow.document;
> var a = doc.getElementsByTagName("a");
> var matches = null;
> for(var x=0; x<a.length; x++) {
> if(a[x].innerHTML.match(/Inbox (d+)/gm) && a[x].href.match(/#inbox$/gim)) {
> matches = a[x].innerHTML.match(/Inbox ((d+))/);
> break;
> }
> }
> if(!matches) {
> for(var x=0; x<a.length; x++) {
> if(a[x].innerHTML.match(/Inbox/gm) && a[x].href.match(/#inbox$/gim)) {
> matches = ["Inbox (0)","0"];
> break;
> }
> }
> }
>
> if(matches && matches[1]) {
> window.platform.icon().badgeText = parseInt(matches[1]);
> if (parseInt(matches[1]) > newMailCount) {
> window.platform.showNotification("New Mail Alert", "There are " + parseInt(matches[1]) + " new messages.", null);
> }
> newMailCount = parseInt(matches[1]);
> }
>
> }
>
> - Jason
>
> *Jason Miller*
> 519.872.0797 // developIThttp://developit.ca/ // Jason Miller Design
http://jasonmillerdesign.com/
> Developer of amoebaOShttps://amoebaos.com/, Shutterborg
http://shutterb.org/, Delitweet
http://delitweet.com/ & more
Jason Miller
Jason Miller
Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more
Jason Miller
519.872.0797 // developIT // Jason Miller Design
Developer of amoebaOS, Shutterborg, Delitweet & more