Did the script register with Growl? You will see "test growl" listed in
Applications tab of Growl Prefs.
Are applescripts otherwise working normally on your system?
Maybe try a clean install of Growl and restart?
(Trash growl files in ~/Library/Containers
& make sure there are no files from previous versions, e.g
in ~/Library/PreferencesPanes)
On Monday, August 5, 2013 11:02:33 AM UTC+1, Jean Ravin wrote:
>
> I've tried the script and I get no notification, nor growl isn't running
> dialog.
>
> On Monday, August 5, 2013 8:38:06 AM UTC+2, dewshi wrote:
>>
>> 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
>> button 1 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.