I looked into this today. On the one hand, it wasn't too hard to hack growl to call a handler on an applescript for feedback, but the simple method is blocking till the handler finishes. Applescripts don't like being called in background threads from what I can tell. I think Adium uses a helper app to call the handler in the background and that starts making things more complicated. I'm still open to doing this in the future, but I have plenty of things on my plate at the moment for Growl.
On May 4, 4:29 pm, Rudy Richter <[email protected]> wrote: > that is to say if you're wanting it for AppleScript. the python > binding has already been jettisoned. > > -rudy > > On May 4, 1:42 pm, Christopher Forsythe <[email protected]> wrote: > > > > > The situation hasn't really changed. We're not opposed to it happening, just > > we haven't had anyone implement it. If you know how, feel free to do it. > > > Chris > > > On Wed, May 4, 2011 at 4:49 AM, J <[email protected]> wrote: > > > Hi all, > > > > I'm very new to using both Growl and AppleScript, but have been > > > writing a little script in which it'd be nice to use click feedback > > > with Growl in place of the dialog box I'm currently using. > > > > I've had a good root around in the archives of this google group and > > > the old cocoaforge forum and it looks like the AppleScript dictionary > > > doesn't support click feedback. All the posts I found were a good year > > > or two old though, so I wondered if the situation had now changed or > > > if there are any plans to support click feedback for AppleScript in > > > the near future, as nothing is mentioned in the Growl developer > > > documentation. > > > > I also saw an old post saying that click feedback isn't available from > > > python either. Is that still the case too? > > > > Thanks in advance for your help. > > > > JC > > > > ----- > > > The script I was referring to, in case you're interested: > > > > set appName to "20min Reminder" > > > set delayTime1 to 60 * 20 > > > set delayTime2 to 60 * 5 > > > > tell application "GrowlHelperApp" > > > -- Make a list of all the notification types > > > -- that this script will ever send: > > > set the allNotificationsList to ¬ > > > {"20 Minute Reminder", "5 Minute Reminder"} > > > > -- Make a list of the notifications > > > -- that will be enabled by default. > > > -- Those not enabled by default can be enabled later > > > -- in the 'Applications' tab of the growl prefpane. > > > set the enabledNotificationsList to ¬ > > > {"20 Minute Reminder", "5 Minute Reminder"} > > > > -- Register our script with growl. > > > -- You can optionally (as here) set a default icon > > > -- for this script's notifications. > > > register as application ¬ > > > appName all notifications allNotificationsList ¬ > > > default notifications enabledNotificationsList ¬ > > > icon of application "Time Machine" > > > > end tell > > > > repeat > > > > activate -- activate will bring a specific application to the > > > front, > > > then call the dialog, so the dialog should be displayed on top of > > > other windows/applications. > > > set question to display dialog "Choose an option to set the eye- > > > strain alarm:" buttons {"20 minutes", "5 minutes", "Turn off"} default > > > button 1 with icon stop > > > set answer to button returned of question > > > > if answer is "20 minutes" then > > > delay delayTime1 > > > > tell application "GrowlHelperApp" > > > > -- Send a Notification... > > > notify with name ¬ > > > "20 Minute Reminder" title ¬ > > > "20 Minute Reminder" description ¬ > > > "You've been looking at the screen for 20 > > > minutes. How about a > > > break?" application name appName > > > end tell > > > > else if answer is "5 minutes" then > > > delay delayTime2 > > > > tell application "GrowlHelperApp" > > > > notify with name ¬ > > > "5 Minute Reminder" title ¬ > > > "5 Minute Reminder" description ¬ > > > "Your 5 minute break is over." application > > > name appName > > > > end tell > > > > else if answer is "Turn off" then > > > exit repeat > > > > end if > > > > end repeat > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Growl Discuss" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/growldiscuss?hl=en. -- You received this message because you are subscribed to the Google Groups "Growl Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/growldiscuss?hl=en.
