Try this:
(save as Application from Applescript Editor)

--"test growl"


*property* app_name : "test growl"

*property* notificationsList : {"test"}


*on* register_growl()

*try*

*tell* *application* "Growl"

*register* as application app_name all notifications notificationsList default 
notifications notificationsList icon of application app_name

*end* *tell*

*end* *try*

*end* register_growl


*on* growlnote(growltype, str)

*try*

*tell* *application* "Growl"

*notify* with name growltype title growltype description str application 
name app_name

*end* *tell*

*end* *try*

*end* growlnote



--SCRIPT:


--verify Growl

*tell* *application* "System Events"

*set* GrowlisRunning *to* (*count* *of* (*every* *process* *whose* bundle 
identifier *is* "com.Growl.GrowlHelperApp")) > 0

*end* *tell*

*if* GrowlisRunning *then*

*my* register_growl()

*end* *if*



--send test notification

*display dialog* "Test Growl notification?" with icon 1

*if* GrowlisRunning *then*

--growl message:

*my* growlnote("test", "hello")

*else*

*display dialog* "Growl is not running!" buttons {"Cancel"} default button1 
with 
icon 0

*end* *if*


--END

-- 
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