The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Feature Request: Exposure of OF event handlers (http://forums.omnigroup.com/showthread.php?t=6192)

rand 2007-12-10 05:26 PM

Feature Request: Exposure of OF event handlers
 
Hello,
I am relatively new to Applescript in general, so possibly I am missing something in the current OF dictionary or the way that event handlers are exposed.

What I'd like to be able to do is create a script that will react to various events that may occur within OF, rather than me needing to explicitly invoke a script to make something happen. For example, so that I can make some custom thing happen whenever I mark a task as completed.

Poking around in the dictionaries of various other applications, an example of what I'd like to see exposed in OF can be seen in the iChat dictionary: it exposes not only the iChat Suite of classes, but also the iChat Event Handler Suite.

Can someone point me in the right direction, or else, consider this a feature request for a future release?

Thanks,
Rand

Tim Wood 2007-12-12 08:34 PM

We have some reasonably generic handler support inside OmniFocus, but the only handler that we invoke right now is for clippings, and these have to be wrapped up in a bundle.

If you'd find this feature useful, let us know via Help > Send Feedback, including what situations you'd like to have the invoke the handler.

One of the issues with handlers that I've been mulling over is how to avoid cases where one handler does something that will provoke another handler, that will... etc. In some cases you *do* want to chain multiple handlers so we might just need to detect this at runtime and alert the user and disable the handlers until the next launch, or some such.

rand 2007-12-14 05:52 PM

Thanks for your reply, Tim.

I will submit the request, along with a couple use cases, via Feedback.

I agree that a scripter can get into trouble if not careful about potential event chains/circles, but am not sure how much the app should do to systematically handle/prevent those situations. I'd start by keeping it simple, expose a select few handlers, and see how it goes.

Rand

umop 2008-01-12 12:02 PM

Did anything ever happen on this? I, also, would like to see events exposed. I can think of a number of examples. If it hasn't made any progress, I'll send a feedback too.

Thanks,
Eric

[QUOTE=rand;28665]Thanks for your reply, Tim.

I will submit the request, along with a couple use cases, via Feedback.

I agree that a scripter can get into trouble if not careful about potential event chains/circles, but am not sure how much the app should do to systematically handle/prevent those situations. I'd start by keeping it simple, expose a select few handlers, and see how it goes.

Rand[/QUOTE]


All times are GMT -8. The time now is 12:55 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.