So do I.
Code: Select all
Procedure Growl_notify(title.s,text.s)
a.s="try"+#CRLF$
a.s+" tell application "+Chr(34)+"GrowlHelperApp"+Chr(34)+#CRLF$
a.s+" set the allNotificationsList To {"+Chr(34)+title.s+Chr(34)+"}"+#CRLF$
a.s+" set the enabledNotificationsList To {"+Chr(34)+title.s+Chr(34)+"}"+#CRLF$
a.s+" register As application "+Chr(34)+ProgramFilename()+Chr(34)+" all notifications allNotificationsList Default notifications enabledNotificationsList icon of application "+Chr(34)+ProgramFilename()+Chr(34)+#CRLF$
a.s+" notify With name "+Chr(34)+title+Chr(34)+" title "+Chr(34)+title.s+Chr(34)+" description "+Chr(34)+text.s+Chr(34)+" application name "+Chr(34)+ProgramFilename()+Chr(34)+#CRLF$
a.s+" End tell"+#CRLF$
a.s+"End try"+#CRLF$
COCOA_AppleScript(a.s)
EndProcedure
Growl_notify("Here is the title","This is what you want to say")
Anyone who got to little to do, maybe find a way to get the notification back (like with skype, if i click on the notification i go straight into chat with that person).