I'd suggest installing the bark plugin to use the notification-center bit here. 
Here's one pretty basic example though: 



using terms from application "Growl"


on evaluate notification with notification


ignoring case


if notification's app name is "Dropbox" then


return {display:"notification-center"}


end if


if notification's app name is "Adium" then


return {display:"Music Video"}


end if


end ignoring


end evaluate notification


end using terms from



This is really basic though. You can do things like look at the contents of a 
notification, decide to not display something based on those contents, etc. We 
just don't have a repository of example scripts because we've only touched the 
surface of what's possible here. Scripting is one of the main reasons this 
release took a long time to get out and we still are just at the beginning of 
it. 

-- 
Chris Forsythe
@The_Tick (http://twitter.com/The_Tick)


On Friday, August 2, 2013 at 7:19 PM, William Brown wrote:

> Could you post an example with more concrete terms and an actual example 
> script. I don't know if notification is required, if it's a variable, etc. 
> what sets it? does growl set it? is it the name of the notification sent by 
> the application? etc. very confused. a simpler explanation with a concrete 
> example would help a great deal.
> 
> On Friday, August 2, 2013 2:17:14 AM UTC+1, Daniel Siemer wrote:
> > The folder where the scripts go the same as in those rules (Just don't name 
> > it Rules.scpt).  In your script you need an event handler:
> > 
> > 
> > using terms from application "Growl"
> > 
> > 
> > on perform action with notification
> > 
> > 
> > (* What you do with the notification goes in here*)
> > 
> > 
> > end perform action
> > 
> > 
> > end using terms from
> > 
> > Then open Growl's preferences, go to the displays tab, find the Script 
> > Action in the list, and select your script.  You may have to create a new 
> > configuration (the add config popup at the bottom).  Note that the script 
> > action changes its name in the list to the selected script.
> > 
> > On Thursday, August 1, 2013 12:53:28 PM UTC-5, dewshi wrote:
> > > I'd like to run an applescript every time HardwareGrowler notifies that a 
> > > Volume has mounted. Is this possible?
> > > 
> > > I see documentation of Applescript rules here: 
> > > http://growl.info/documentation/applescript-rules, but I don't think this 
> > > is what I need.
> > > 
> > > Does anyone have an example? Thanks.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Growl Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> (mailto:[email protected]).
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> Visit this group at http://groups.google.com/group/growldiscuss.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/growldiscuss.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to