External Editor
Yamb
Web iPhoto Access
 29 members
Users online
( nobody )
147710 visitors
12 visitors online
|
Topic #19 |
doesn't work fine with growl
by loopkin - visitor
05/11/2005 @ 19:01 |
 |
i had to add this script, and call it from yamb:
#!/bin/sh
/usr/local/bin/growlnotify -n Thunderbird -a Thunderbird -t "Nouveau Mail" -m "De: $2 Sujet: $1" |
 |
Answer #1 |
by Globs - ( 44 messages )
05/11/2005 @ 20:42 |
 |
I don't really see the difference with the Growl script which I suggest here, except the use of the "-n" option. What do you really mean by "doesn't work fine" ?
|
 |

Answer #2 |
by loopkin - visitor
05/11/2005 @ 22:42 |
 |
well, first, thanx for your YAMB, it's great !
second, in the beginning i didn't see your script, and frankly the name isn't well chosen, since "growlnotify" is the name of the CLI to growl
third, why don't you integrate all the scripts directly to YAMB ?
fourth, the inline documentation of YAMB tells that 1=Subject, 2=From, ... and thus one can expct the string "1", "2", ... to be replaced by the subject, from, ... in the command line entered just before... a quick look at yamb's code told me that it wasn't obviously the case...
fifth.. yes, the missing -n 
|
 |

Answer #3 |
by Globs - ( 45 messages )
05/11/2005 @ 23:34 |
 |
Dixit...
the name isn't well chosen, since "growlnotify" is the name of the CLI to growl
Oh, sorry not to have enough imagination. If you can propose an intelligent name which integrates well in the context and respects the pattern used for all scripts, I'll be glad to use it .
Dixit...
why don't you integrate all the scripts directly to YAMB ?
Because I don't know all notification systems existing in the universe, nor do I intend to. The extension is designed in a way you can use any external system, so there is no limit to what you can do. But of course, this requires you to work a little bit.
Dixit...
the inline documentation of YAMB tells that 1=Subject, 2=From, ... and thus one can expct the string "1", "2", ... to be replaced by the subject, from, ... in the command line entered just before
OK, I could remove 1=, 2=,... and just write that the parameters come in this order. Anyway, what did you expect ? You are calling a script which receives parameters. How did you want it to receive them ? The solution you expected is just not possible . This is also why I provided some notification scripts: as examples.
You did not tell me if this -n option is required or not. I haven't Growl installed, so I can't test it, but the current script has been provided by a user, so I suppose the option is not necessary. Do you confirm?
|
 |

Answer #4 |
by Bastian - visitor
01/02/2006 @ 18:54 |
 |
Hi Folks,
somehow neither of the scripts, you both described works for me. I installed growlnotify in /usr/local/bin and Growl, as well as the yamb extension. All in the most recent versions. In TB, i use the 1.5 release.
The scripts, I put into my home-folder and made them executable. Pressing "Test" in the extension prefs works, TB is registered in Growl and displays the right message. But on automatic check, TB reports new messages, but Growl keeps quiet. Any ideas?
Thanks
|
 |

Answer #5 |
by Globs - ( 108 messages )
01/02/2006 @ 19:01 |
 |
You coud try an other notifier to see if this is a problem with Growl.
I've had exactly the same symptoms with iAlert. The test was OK, but no real alert. I looked in the console and saw that iAlert was reported to crash. This was the clue to begin investigating in the good direction: my iAlert script was buggy.
Maybe you have a similar problem with your script ?
|
 |

Answer #6 |
by Bastian - visitor
01/02/2006 @ 19:47 |
 |
Thanks for the quick reply!
I just tried iAlert with your iAlertNotify.sh. Exactly the same behaviour, TB receives new mail, but iAlert keeps quiet. Testing works though, which it does as well, when I start the script from the terminal (worked for Growl, too).
So exactly the same behaviour in Growl and iAlert, could it be that I need a trunk or branch nightly from TB, rather than the 1.5 release?
Thanks again.
Btw. I am using 10.4.4
|
 |

Answer #7 |
by Globs - ( 111 messages )
01/02/2006 @ 20:24 |
 |
No, not at all,
I 've had it working since 1.5 beta 1. And I also run OSX 10.4.4 .
You first have to find out wether your script is called when you receive a mail.
Add an echo at the beginning of the script and look in the console if you see the message.
#!/bin/sh
echo "John Doe has been here"
subject="$1"
...
I have no other idea to investigate this.
|
 |

Answer #8 |
by Bastian - visitor
03/02/2006 @ 12:16 |
 |
Hi, it's me again,
after playing around, I do not assume that it is a script problem. Right now i am using the script below:
#!/bin/sh
echo "Growl was called at `date`"
/usr/local/bin/growlnotify -n Thunderbird -a Thunderbird -t "Nouveau Mail" -m "De:$2 Sujet:$1"
After saving the script, everything worked exactly on-e. And now only testing calls up growl, but upon a new mail check by TB, TB again announces the mail, but the script is not called.
Strange 
Thanks for the help though and for Yamb, of course
Greetings
|
 |

Answer #9 |
by Globs - ( 117 messages )
04/02/2006 @ 00:02 |
 |
Would you have other extensions installed ?
Could this be a problem with your TB account/preferences ?
You could try to create a new profile, with no extension, define one mail account a test this.
|
 |

|
|