Page 1 of 1

Display return values of shell script during execution

PostPosted: Fri Oct 23, 2009 6:18 pm
by xaMax
Hi,

I have some problems using a shell script and display the return values.
I have a rule which matches a file. Then an embedded shell script is executed. This shell scripts "decodes" this file and if you would run this shell script directly in the terminal you would see:
progress: 0%
progress: 1%
progress: 2%
...
ready!

Now I want to display these percentage when I use Hazel.
Is it possible to display the return values of a shell script during(!) the execution (I don't want to display only "ready" at the end). The best way for displaying would be Growl. Is there a way using GrowlNotify or AppleScript?

Thanks for any hints!

Re: Display return values of shell script during execution

PostPosted: Mon Oct 26, 2009 12:40 pm
by Mr_Noodle
You can have your script call something to display it for you but Hazel can't do it itself since it's running in the background. But yes, you should be able to call GrowlNotify but all that logic should be internal to your script and not involve Hazel.