Garry
Chris
> --
> You received this message because you are subscribed to the Google Groups "Growl Discuss" group.
> To post to this group, send email to growld...@googlegroups.com.
> To unsubscribe from this group, send email to growldiscuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/growldiscuss?hl=en.
>
>
It isn't a feature at all: Growl does not have this, hidden or otherwise.
> … and ran an applescript that was meant to display it but without success.
What script was that?
> Pity it isn't an option check bow in preferences, should be easy to add …
The checkbox would be, yes. The implementation, not so much.
my 2 cents
scott
It is data I don't always need. The problem is, if it's not there and I
need it, I'm out of luck. If it is there and I don't need it, I can
ignore it. I too would like the option.
Brian
What about having the timestamp in the notification log viewer? Would that address your needs? If not, why not?
Same question to Scott Goldman and anyone else who wants this option.
(And if we do implement it, it *will* be an option, probably per-display.)
Anything else would make it much more cumbersome.
And an option would absolutely be preferred - I don't want it on every notification, just on some. Even if there's one notification that is designed for a timestamp (hey, you could even call it "Timestamp"!) I could select that for the events for which I want it and use the default for other events.
Many thanks for your attention to this.
Ok, I gave myself the option.
I use Christopher Lobay's excellent Mono style (with a few tweaks, the
text is too small for my terrible eyesight), so I modified it to add the
date and time when the notification is displayed. At the bottom of this
message are the diffs. A few notes:
- This uses the date the notification is *displayed*, which is different
than when the notification was *posted*. However, unless you're
receiving notifications over the network or are on a *really* slow/busy
machine, the two values should be close enough.
- It's not optional, it's there all the time.
- It uses JavaScript's default date format, which isn't all that
readable (if I do further tweaking, this is what I'll poke at first).
- As I'm just posting the diffs, you'll have to be able to apply the
changes to the files yourself.
You should probably make a backup of the style before starting, and
maybe shut down Growl, although Growl picks up the changes automatically
(nice!), so I just edited the files "live", then used growlnotify to
test. I suspect the worst that could happen if you mess something up
badly is Growl would stop displaying notifications until you fix things
(or switch to a different style).
If someone wants to take these changes and do something more with them,
feel free, they're pretty simple (so simple I'm wondering why I didn't
do this years ago :-) ).
Brian
The diffs:
diff -wrc Mono.growlStyle.orig/Contents/Resources/default.css
Mono.growlStyle/Contents/Resources/default.css
*** Mono.growlStyle.orig/Contents/Resources/default.css Sat Jul 3
15:50:38 2010
--- Mono.growlStyle/Contents/Resources/default.css Tue Apr 26
10:27:23 2011
***************
*** 6,11 ****
--- 6,12 ----
#title, #text, #textwrapper, #icon { position: relative;
-webkit-animation-iteration-count: 1; -webkit-animation-timing-function:
ease; }
#title, #text { text-align: left; text-shadow: 0px -1px 1px
rgba(0,0,0,0.7); width: 223px; z-index: 3; }
#title { color: rgba(255,255,255,0.99); font: bold 10pt "Helvetica
Neue"; letter-spacing: 0.7pt; -webkit-animation-duration: 0.7s;
-webkit-animation-name: 'titleIn'; line-height: 16px; }
+ #date { color: rgba(255,255,255,.5); font: normal 6pt "Helvetica
Neue"; margin: 2px 0 0 0; text-align: left; -webkit-animation-duration:
1.0s; -webkit-animation-name: 'textIn'; line-height: 12px; }
#text { color: rgba(255,255,255,.7); font: normal 8pt "Helvetica
Neue"; margin: 2px 0 0 0; text-align: left; -webkit-animation-duration:
1.0s; -webkit-animation-name: 'textIn'; line-height: 15px; }
#border { background: -webkit-gradient(linear, left top, left bottom,
from(rgba(255,255,255,0.0)), to(rgba(255,255,255,0.0)), color-stop(0.5,
rgba(255,255,255,0.2))); bottom: 0; left: 0; position: absolute; top: 0;
width: 1px; }
#textwrapper { padding: 0 0 0 11px; -webkit-animation-duration: 0.6s;
-webkit-animation-name: 'wrapperIn'; min-height: 34px; }
diff -wrc Mono.growlStyle.orig/Contents/Resources/template.html
Mono.growlStyle/Contents/Resources/template.html
*** Mono.growlStyle.orig/Contents/Resources/template.html Sat Dec 19
08:51:34 2009
--- Mono.growlStyle/Contents/Resources/template.html Tue Apr 26
10:18:53 2011
***************
*** 8,13 ****
--- 8,22 ----
<style type="text/css" media="all">
@import url("default.css");
</style>
+ <script type="text/javascript">
+ window.addEventListener('load', function()
+ {
+ var elem = document.getElementById('date');
+
+ if (elem)
+ elem.innerText = new Date();
+ }, true);
+ </script>
<title>Mono by Christopher Lobay</title>
</head>
<body>
***************
*** 18,23 ****
--- 27,33 ----
<div id="border"></div>
<div id="title">%title%</div>
<div id="text">%text%</div>
+ <div id="date"></div>
</div>
</div>
</div>
As a novice, though, I find this perplexing. Could you provide some additional instruction such as where to find these notification files? Are they somewhere in ~/Library, for example?
Also, once I locate the file can it be edited with a standard text editor such as TextWrangler?
Finally, rather than showing the delta - which makes sense from an analytical standpoint - would you be kind enough to post the entire code block for the notification that would include the date? I would duplicate one of the existing files, delete the text/code in it and replace it with whatever you recommend. Then I'd name it "Date notification" and relaunch Growl.
Make sense?
Again, many thanks.
____________________
Display plug-ins and styles are in ~/Library/Application Support/Growl/Plugins.
I don't know about that, but you're not the first person to request this, so we know at least that there are many users who want it.
I've opened a ticket for further discussion of merits both of the feature in general and of specific possible implementations:
http://code.google.com/p/growl/issues/detail?id=193
All users who want this feature should star that ticket, and ideally should make their case for the feature and how they think it should work and why.
I'm unable to "sign in" to contribute on that site, but if my login worked
I would star the item and make the following point:
Analyzing my use of sticky notifications, I realize that each and every
time I come back to one on my screen, I'm then checking other sources of
info for when the notification was posted.
This is in fact why I have not upgraded past Growl 1.2. One of my sources
of "when did that notification get posted" information is the logs viewed
via Console.app. The extremely chatty debug info about display rect
calculation logged by Growl 1.2.1 caused me to back off to 1.2 in order to
have the necessary timing info still in the log files by the time I
checked for it. At the time, I believe I suggested operational vs. debug
logging be done.
Optional timestamps including dates in the sticky notifications would make
secondary checks for when the event happened less necessary for me.
Since you're unable to sign in (I'm guessing you subscribed to the group via email), I've posted your comments there myself.
Oops; I forgot to mention that on the ticket. I have now done so.
Thanks, yes, that will work to replace using Console.app.
However, the rollup+log viewer approach would still involve the extra check
being done manually every time there's a sticky notification to
investigate. Putting the timestamp on select preconfigured sticky
notifications themselves would avoid the extra steps.
Peter answered this but for completeness, it's ~/Library/Application
Support/Growl/Plugins.
> Also, once I locate the file can it be edited with a standard text editor such as TextWrangler?
Both files are regular old text files, so anything that leaves them as
just text should work.
> Finally, rather than showing the delta - which makes sense from an analytical standpoint - would you be kind enough to post the entire code block for the notification that would include the date? I would duplicate one of the existing files, delete the text/code in it and replace it with whatever you recommend. Then I'd name it "Date notification" and relaunch Growl.
I'm not entirely comfortable doing that, and the diffs are pretty
straightforward (basically any line that starts +<space> gets inserted
in a location determined by the lines before and after, and then the
+<space> removed).
Brian
You mean Brian's?
> Is there something else I need to do in order to get the new style to appear?
You need to edit Info.plist to change the style's name.
Please zip up the style bundle and send it to the group by email as an attachment.
> On Apr 29, 2011, at 12:51:05, Scott wrote:
>> I … still do not see it in the Display Options.
>
> Please zip up the style bundle and send it to the group by email as an attachment.
>
You also need to change CFBundleIdentifier. (And please don't use the com.growl domain.)
A minor tweak request - I'd like to be able to show the time in AM/PM instead of a 24-hour clock. Can anyone offer guidance on that?
Finally, I want to be sure to respect the appropriate protocols here. I didn't write this style and don't claim credit for it. I only modified the original author's work (and very slightly at that - and with the help of Brian and others in this group) and noted that in the credits. I do not wish to diminish the author's (or Brian's) efforts and want to ensure that the credit is correctly given. When you look at the files and see my name and URL buried somewhere in there do not hesitate to tell me if it is out of place or inappropriate. Everyone here has been exceedingly helpful and I want to be respectful of that.
Thanks, everyone, for all your assistance. A current version of the Timestamp style is attached.
> A minor tweak request - I'd like to be able to show the time in AM/PM instead of a 24-hour clock. Can anyone offer guidance on that?
this would be a case of playing with the javascript date object.
eg. so instead of just doing
elem.innerText = new Date();
you'll need to format the date how you want it and set elem.innerText to that:
var now = new Date();
elem.innerText = now.toDateString() + " the time in my format here";
Unfortunately, there isn't a whole lot of built-in functionality to help that i can find.
This should help though: http://www.webdevelopersnotes.com/tips/html/10_ways_to_format_time_and_date_using_javascript.php3